From e8bf4982361d1958cd562a648bda431951a22a2b Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Mon, 20 Nov 2023 21:19:37 -0600 Subject: [PATCH] fix(web): non-null error --- .../lib/components/shared-components/scrollbar/scrollbar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte b/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte index f47053be3d..ad9e205779 100644 --- a/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte +++ b/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte @@ -42,7 +42,7 @@ segment.timeGroup = bucket.bucketDate; segment.date = fromLocalDateTime(segment.timeGroup); - if (prev && prev!.date.year !== segment.date.year && height > MIN_YEAR_LABEL_DISTANCE) { + if (prev?.date.year !== segment.date.year && height > MIN_YEAR_LABEL_DISTANCE) { prev.hasLabel = true; height = 0; }