Skip to content

Commit

Permalink
Search crashes the app (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopedroliveira authored Jan 24, 2024
1 parent 739b0cf commit fce6864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const Navbar = () => {
);
});

if (candidates) {
if (candidates.length) {
const nextHighlightedNode = candidates[0].id as string;
if (nextHighlightedNode === highlightedNode) return;

Expand Down

0 comments on commit fce6864

Please sign in to comment.