Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeep Tailor <deep.j.tailor@nasa.gov>2019-12-26 22:00:49 +0300
committerDeep Tailor <deep.j.tailor@nasa.gov>2019-12-26 22:00:49 +0300
commit3f4fe5d4479b55d3c04c073afd82537e19fb0111 (patch)
tree17373007f5f571f7589d52d315029439b8f4a964
parent92c628e3899b28ee2b9893b10957797e56f541a5 (diff)
fixes plots refetching when filters are initializedvista-4.3.0-rc8
-rw-r--r--src/plugins/plot/src/configuration/PlotSeries.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/plugins/plot/src/configuration/PlotSeries.js b/src/plugins/plot/src/configuration/PlotSeries.js
index e011e88fd..f77e4ad30 100644
--- a/src/plugins/plot/src/configuration/PlotSeries.js
+++ b/src/plugins/plot/src/configuration/PlotSeries.js
@@ -377,13 +377,17 @@ define([
* @public
*/
updateFiltersAndRefresh: function (updatedFilters) {
- this.filters = updatedFilters;
- this.reset();
- if (this.unsubscribe) {
- this.unsubscribe();
- delete this.unsubscribe;
+ if (this.filters) {
+ this.filters = updatedFilters;
+ this.reset();
+ if (this.unsubscribe) {
+ this.unsubscribe();
+ delete this.unsubscribe;
+ }
+ this.fetch();
+ } else {
+ this.filters = updatedFilters;
}
- this.fetch();
}
});