diff --git a/apps/client/src/widgets/react/NoteLink.tsx b/apps/client/src/widgets/react/NoteLink.tsx index 2a9ec199d..06841b534 100644 --- a/apps/client/src/widgets/react/NoteLink.tsx +++ b/apps/client/src/widgets/react/NoteLink.tsx @@ -28,7 +28,7 @@ export default function NoteLink({ className, notePath, showNotePath, showNoteIc if (!ref.current || !jqueryEl) return; ref.current.replaceChildren(jqueryEl[0]); highlightSearch(ref.current); - }, [ jqueryEl ]); + }, [ jqueryEl, highlightedTokens ]); if (style) { jqueryEl?.css(style);