add a check for filters on initialize to prevent refetching with empty filters (#2609)

This commit is contained in:
Deep Tailor 2019-12-26 11:52:01 -08:00 committed by GitHub
parent 384f0efcb3
commit 322cd94be7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,6 +377,7 @@ define([
* @public
*/
updateFiltersAndRefresh: function (updatedFilters) {
if (this.filters) {
this.filters = updatedFilters;
this.reset();
if (this.unsubscribe) {
@ -384,6 +385,9 @@ define([
delete this.unsubscribe;
}
this.fetch();
} else {
this.filters = updatedFilters;
}
}
});