From ed2f8fe2b89d0688fa6b378a54c58b4288fb0f65 Mon Sep 17 00:00:00 2001 From: Patrick Tasse Date: Mon, 27 Sep 2021 10:18:29 -0400 Subject: [PATCH] Make time graph state label optional Not all time graph states have a label. Make the variable optional instead of requiring users to put an empty string. Change-Id: I980917cfb0d6c761e78905bc5bfef5ee3480da86 Signed-off-by: Patrick Tasse --- timeline-chart/src/time-graph-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeline-chart/src/time-graph-model.ts b/timeline-chart/src/time-graph-model.ts index 0dd2cba..68e7bcd 100644 --- a/timeline-chart/src/time-graph-model.ts +++ b/timeline-chart/src/time-graph-model.ts @@ -28,7 +28,7 @@ export namespace TimelineChart { export interface TimeGraphState { readonly id: string readonly range: TimeGraphRange - readonly label: string + readonly label?: string selected?: boolean readonly data?: { [key: string]: any } }