From d79dd5a27bc43695b339eafeb415634522bb5dbb Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 4 Apr 2017 05:11:00 -0500 Subject: [PATCH] Filter: Prevent JS error added from last update. Fixes #1377 --- js/widgets/widget-filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/widget-filter.js b/js/widgets/widget-filter.js index 2b43543b..1b3bd018 100644 --- a/js/widgets/widget-filter.js +++ b/js/widgets/widget-filter.js @@ -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 ) {