Skip to content

Commit 3cfa23f

Browse files
PatrickTassebhufmann
authored andcommitted
Use default empty string when annotation label is absent
Signed-off-by: Patrick Tasse <[email protected]>
1 parent 9f6f4f5 commit 3cfa23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-components/src/components/data-providers/tsp-data-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class TspDataProvider {
296296
start: annotation.time - chartStart,
297297
end: annotation.time + annotation.duration - chartStart
298298
},
299-
label: annotation.label,
299+
label: annotation.label ?? '',
300300
data: {
301301
style: annotation.style
302302
}

0 commit comments

Comments
 (0)