Merge remote-tracking branch 'origin' into new-widget

This commit is contained in:
charlesh88 2020-03-25 17:16:23 -07:00
commit 6ff5ce78e1
2 changed files with 6 additions and 4 deletions

View File

@ -377,8 +377,10 @@ define([
* @public
*/
updateFiltersAndRefresh: function (updatedFilters) {
if (this.filters && !_.isEqual(this.filters, updatedFilters)) {
this.filters = updatedFilters;
let deepCopiedFilters = JSON.parse(JSON.stringify(updatedFilters));
if (this.filters && !_.isEqual(this.filters, deepCopiedFilters)) {
this.filters = deepCopiedFilters;
this.reset();
if (this.unsubscribe) {
this.unsubscribe();
@ -386,7 +388,7 @@ define([
}
this.fetch();
} else {
this.filters = updatedFilters;
this.filters = deepCopiedFilters;
}
}
});

View File

@ -181,7 +181,7 @@ define([
}
refreshData(bounds, isTick) {
if (!isTick) {
if (!isTick && this.outstandingRequests === 0) {
this.filteredRows.clear();
this.boundedRows.clear();
this.boundedRows.sortByTimeSystem(this.openmct.time.timeSystem());