From 57ca5c7a591f767e681d4a018f390014c8dd3c74 Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 22 Apr 2019 13:45:22 +0300 Subject: [PATCH] Hotfix for #235 --- src/panel/graph_panel/controllers/analytic_controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panel/graph_panel/controllers/analytic_controller.ts b/src/panel/graph_panel/controllers/analytic_controller.ts index f84c93b..b0a75fd 100644 --- a/src/panel/graph_panel/controllers/analytic_controller.ts +++ b/src/panel/graph_panel/controllers/analytic_controller.ts @@ -313,7 +313,7 @@ export class AnalyticController { // We get a reference to flot options so we can change it and it'll be rendered let options = plot.getOptions(); if(options.grid.markings === undefined) { - options.markings = []; + options.grid.markings = []; } for(let i = 0; i < this.analyticUnits.length; i++) { @@ -371,11 +371,11 @@ export class AnalyticController { }); if(!analyticUnit.inspect) { - return; + continue; } const detectionSpans = analyticUnit.detectionSpans; if(detectionSpans === undefined) { - return; + continue; } const minValue = _.min(_.map(plot.getYAxes(), axis => axis.min)); detectionSpans.forEach(detectionSpan => {