Browse Source

Hotfix for "Confusing Save / Detect buttons #321 (#333)"

master
rozetko 6 years ago
parent
commit
6f2b6940f5
  1. 5
      src/panel/graph_panel/graph_ctrl.ts

5
src/panel/graph_panel/graph_ctrl.ts

@ -645,7 +645,10 @@ class GraphCtrl extends MetricsPanelCtrl {
} }
async onAnalyticUnitSave(analyticUnit: AnalyticUnit) { async onAnalyticUnitSave(analyticUnit: AnalyticUnit) {
if(this.analyticsController.labelingUnit.id === analyticUnit.id) { if(
this.analyticsController.labelingUnit !== null &&
this.analyticsController.labelingUnit.id === analyticUnit.id
) {
await this.onToggleLabelingMode(analyticUnit.id) await this.onToggleLabelingMode(analyticUnit.id)
} }
await this.analyticsController.saveAnalyticUnit(analyticUnit); await this.analyticsController.saveAnalyticUnit(analyticUnit);

Loading…
Cancel
Save