From 2b4db1be41decc507fcf1517f692f6d056c35207 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Sun, 21 Jun 2026 17:10:16 -0500 Subject: [PATCH] typecheck --- src/app/hooks/timeline/useProcessedTimeline.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/hooks/timeline/useProcessedTimeline.ts b/src/app/hooks/timeline/useProcessedTimeline.ts index c96b7050f..5a80ce1d9 100644 --- a/src/app/hooks/timeline/useProcessedTimeline.ts +++ b/src/app/hooks/timeline/useProcessedTimeline.ts @@ -169,15 +169,15 @@ const mergeDraftsAndExtras = ( for (const extra of extraDrafts) { const extraTs = extra.mEvent.getTs(); - while (resultIdx < resultDrafts.length && resultDrafts[resultIdx].mEvent.getTs() <= extraTs) { - mergedDrafts.push(resultDrafts[resultIdx]); + while (resultIdx < resultDrafts.length && resultDrafts[resultIdx]!.mEvent.getTs() <= extraTs) { + mergedDrafts.push(resultDrafts[resultIdx]!); resultIdx += 1; } mergedDrafts.push(extra); } while (resultIdx < resultDrafts.length) { - mergedDrafts.push(resultDrafts[resultIdx]); + mergedDrafts.push(resultDrafts[resultIdx]!); resultIdx += 1; }