From aec287f0cf26c2a1da0e4a92732a9e549363d619 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 11 May 2020 20:59:30 -0400 Subject: [PATCH] Fixed preview bar hover text error --- src/js-components/previewBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 6793e42d..2f6ceea3 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -115,7 +115,7 @@ class PreviewBar { // Find category at that location let category = null; - for (let i = 0; i < this.timestamps.length; i++) { + for (let i = 0; i < this.timestamps?.length; i++) { if (this.timestamps[i][0] < timeInSeconds && this.timestamps[i][1] > timeInSeconds){ category = this.types[i]; }