mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
add a check for filters on initialize to prevent refetching with empty filters (#2609)
This commit is contained in:
@ -377,13 +377,17 @@ define([
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
updateFiltersAndRefresh: function (updatedFilters) {
|
updateFiltersAndRefresh: function (updatedFilters) {
|
||||||
this.filters = updatedFilters;
|
if (this.filters) {
|
||||||
this.reset();
|
this.filters = updatedFilters;
|
||||||
if (this.unsubscribe) {
|
this.reset();
|
||||||
this.unsubscribe();
|
if (this.unsubscribe) {
|
||||||
delete this.unsubscribe;
|
this.unsubscribe();
|
||||||
|
delete this.unsubscribe;
|
||||||
|
}
|
||||||
|
this.fetch();
|
||||||
|
} else {
|
||||||
|
this.filters = updatedFilters;
|
||||||
}
|
}
|
||||||
this.fetch();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user