Merge pull request #2611 from nasa/filters-fetch-bug-fix

Check if filters are not equal before refetching
This commit is contained in:
David Tsay 2020-02-06 16:16:12 -08:00 committed by GitHub
commit 37ef269dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,7 @@ define([
* @public
*/
updateFiltersAndRefresh: function (updatedFilters) {
if (this.filters) {
if (this.filters && !_.isEqual(this.filters, updatedFilters)) {
this.filters = updatedFilters;
this.reset();
if (this.unsubscribe) {