fix: type error

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-07-23 17:54:30 +08:00
parent 5d8bf9f454
commit 01e087bc71
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 2 additions and 2 deletions

View File

@ -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]