From c75292e43b90a8ab6e0771fb7e7120b5fb21a226 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Mon, 10 Feb 2025 11:09:02 -0800 Subject: [PATCH] fix bug spotted by newer typescript --- ui/src/List/VideoList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/List/VideoList.tsx b/ui/src/List/VideoList.tsx index 6eff739..e5504e5 100644 --- a/ui/src/List/VideoList.tsx +++ b/ui/src/List/VideoList.tsx @@ -78,7 +78,9 @@ export function combine( (split90k === undefined || cur.endTime90k - r.startTime90k <= split90k) ) { cur.startId = r.startId; - cur.firstUncommitted == r.firstUncommitted ?? cur.firstUncommitted; + if (r.firstUncommitted !== undefined) { + cur.firstUncommitted = r.firstUncommitted; + } cur.startTime90k = r.startTime90k; cur.videoSamples += r.videoSamples; cur.sampleFileBytes += r.sampleFileBytes;