From 4527d7f05350b3e6aa41d6c0da0ef49c517b9a40 Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 25 Feb 2019 20:06:50 +0300 Subject: [PATCH] Hotfix for #177 - don't run status waiter on create if it is threshold --- src/panel/graph_panel/controllers/analytic_controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panel/graph_panel/controllers/analytic_controller.ts b/src/panel/graph_panel/controllers/analytic_controller.ts index efe927c..21c5595 100644 --- a/src/panel/graph_panel/controllers/analytic_controller.ts +++ b/src/panel/graph_panel/controllers/analytic_controller.ts @@ -105,8 +105,9 @@ export class AnalyticController { this._analyticUnitsSet.addItem(this._newAnalyticUnit); this._creatingNewAnalyticType = false; this._savingNewAnalyticUnit = false; - // this.runEnabledWaiter(this._newAnalyticUnit); - this._runStatusWaiter(this._newAnalyticUnit); + if(this._newAnalyticUnit.detectorType !== 'threshold') { + this._runStatusWaiter(this._newAnalyticUnit); + } } get creatingNew() { return this._creatingNewAnalyticType; }