From e4d9a529e74adf1491b7e93ffc04913b2df37895 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Wed, 5 Aug 2026 17:36:27 +0530 Subject: [PATCH] fix: resolve 1 bugs in reframe --- src/components/ThumbnailStrip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThumbnailStrip.tsx b/src/components/ThumbnailStrip.tsx index f5094722..29b2a591 100644 --- a/src/components/ThumbnailStrip.tsx +++ b/src/components/ThumbnailStrip.tsx @@ -86,7 +86,7 @@ export default function ThumbnailStrip({ for (let t = 0; t <= duration; t += intervalSeconds) { times.push(Math.min(t, duration - 0.1)); } - if ((times[times.length - 1] ?? 0) < duration - 0.5) { + if ((times.at(-1) ?? 0) < duration - 0.5) { times.push(duration - 0.1); }