fix: clear codacy object injection highs

This commit is contained in:
lucaronin
2026-05-07 20:44:45 +02:00
parent 8d35fbcba3
commit 5965d5f23f
98 changed files with 952 additions and 559 deletions

View File

@@ -259,7 +259,7 @@ function useMoveHighlight({
const currentIndex = resolveCurrentIndex(items, highlightedPathRef.current, selectedNotePath)
const nextIndex = moveHighlightIndex(currentIndex, direction, items.length)
const currentPath = highlightedPathRef.current ?? selectedNotePath
const nextItem = items[nextIndex]
const nextItem = items.at(nextIndex)
if (!nextItem || nextItem.path === currentPath) return
syncHighlightedPath(nextItem.path)