Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 23, 2024
1 parent 5d8bf9f commit 01e087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/modules/entry-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit 01e087b

Please sign in to comment.