diff --git a/app/components-react/pages/Highlighter.tsx b/app/components-react/pages/Highlighter.tsx index 158aadb072c1..9a2978eeed60 100644 --- a/app/components-react/pages/Highlighter.tsx +++ b/app/components-react/pages/Highlighter.tsx @@ -35,6 +35,7 @@ export default function Highlighter(props: { params?: { view: string } }) { useEffect(() => { // check if ai highlighter is activated and we need to update it async function shouldUpdate() { + if (!HighlighterService.aiHighlighterUpdater) return false; const versionAvailable = await HighlighterService.aiHighlighterUpdater.isNewVersionAvailable(); return versionAvailable && aiHighlighterEnabled && v.useAiHighlighter; }