diff --git a/src/controllers/analytic_controller.ts b/src/controllers/analytic_controller.ts index e8400a4..6fca88d 100644 --- a/src/controllers/analytic_controller.ts +++ b/src/controllers/analytic_controller.ts @@ -171,6 +171,9 @@ export class AnalyticController { } onAnalyticUnitColorChange(id: AnalyticUnitId, value: string) { + if(id === undefined) { + throw new Error('id is undefined'); + } this._analyticUnitsSet.byId(id).color = value; }