IGNITE-10587 Web Console: Fixed chart history cleanup.

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/26860c5a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/26860c5a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/26860c5a

Branch: refs/heads/ignite-10189
Commit: 26860c5a9a9375baba81bcf67d140a4f4055d838
Parents: e1b8686
Author: Alexander Kalinin <[email protected]>
Authored: Fri Dec 7 16:29:08 2018 +0700
Committer: Alexey Kuznetsov <[email protected]>
Committed: Fri Dec 7 16:29:08 2018 +0700

----------------------------------------------------------------------
 .../web-console/frontend/app/components/ignite-chart/controller.js  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/26860c5a/modules/web-console/frontend/app/components/ignite-chart/controller.js
----------------------------------------------------------------------
diff --git 
a/modules/web-console/frontend/app/components/ignite-chart/controller.js 
b/modules/web-console/frontend/app/components/ignite-chart/controller.js
index 81ed273..b611250 100644
--- a/modules/web-console/frontend/app/components/ignite-chart/controller.js
+++ b/modules/web-console/frontend/app/components/ignite-chart/controller.js
@@ -87,6 +87,7 @@ export class IgniteChartController {
         if ((changes.chartDataPoint && 
_.isNil(changes.chartDataPoint.currentValue)) ||
             (changes.chartHistory && 
_.isEmpty(changes.chartHistory.currentValue))) {
             this.clearDatasets();
+            this.localHistory = [];
 
             return;
         }

Reply via email to