Skip to content

Commit 34a9f88

Browse files
search crash
1 parent 9ccdcb3 commit 34a9f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Navbar/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const Navbar = () => {
141141
);
142142
});
143143

144-
if (candidates) {
144+
if (candidates.length) {
145145
const nextHighlightedNode = candidates[0].id as string;
146146
if (nextHighlightedNode === highlightedNode) return;
147147

0 commit comments

Comments
 (0)