From 01e087bc71131fc4e762807743bfdcf503df0e82 Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 23 Jul 2024 17:54:30 +0800 Subject: [PATCH] fix: type error Signed-off-by: Innei --- src/renderer/src/modules/entry-column/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/modules/entry-column/index.tsx b/src/renderer/src/modules/entry-column/index.tsx index 75dad99a1..c089aab09 100644 --- a/src/renderer/src/modules/entry-column/index.tsx +++ b/src/renderer/src/modules/entry-column/index.tsx @@ -420,7 +420,7 @@ const EntryList: FC< const nextIndex = Math.min(currentActiveEntryIndex + 1, data.length - 1) - virtuosoOptions.virtuosoRef.current?.scrollIntoView?.({ + virtuosoRef.current?.scrollIntoView?.({ index: nextIndex, }) const nextId = data![nextIndex] @@ -444,7 +444,7 @@ const EntryList: FC< data.length - 1 : Math.max(0, currentActiveEntryIndex - 1) - virtuosoOptions.virtuosoRef.current?.scrollIntoView?.({ + virtuosoRef.current?.scrollIntoView?.({ index: nextIndex, }) const nextId = data![nextIndex]