Filter: Prevent JS error added from last update. Fixes #1377

This commit is contained in:
Rob Garrison 2017-04-04 05:11:00 -05:00
parent 2cc77bda67
commit d79dd5a27b

View File

@ -1812,7 +1812,7 @@
// setFilters called, but last search is exactly the same as the current
// fixes issue #733 & #903 where calling update causes the input values to reset
( $.isArray(setFilters) && setFilters.join(',') === c.lastSearch.join(',') ) ) {
return $( table ).data( 'lastSearch' );
return $( table ).data( 'lastSearch' ) || [];
}
if ( c ) {
if ( c.$filters ) {