diff options
author | Deep Tailor <deep.j.tailor@nasa.gov> | 2019-12-26 22:00:49 +0300 |
---|---|---|
committer | Deep Tailor <deep.j.tailor@nasa.gov> | 2019-12-26 22:00:49 +0300 |
commit | 3f4fe5d4479b55d3c04c073afd82537e19fb0111 (patch) | |
tree | 17373007f5f571f7589d52d315029439b8f4a964 | |
parent | 92c628e3899b28ee2b9893b10957797e56f541a5 (diff) |
fixes plots refetching when filters are initializedvista-4.3.0-rc8
-rw-r--r-- | src/plugins/plot/src/configuration/PlotSeries.js | 16 |
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(); } }); |