Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Avoid reporting errors when performFind has not been called
SiriusXT67e84d921fab
diff --git a/apps/client/src/widgets/find_in_html.ts b/apps/client/src/widgets/find_in_html.tsindex 4885fda31e..e8ae8b5ab6 100644--- a/apps/client/src/widgets/find_in_html.ts+++ b/apps/client/src/widgets/find_in_html.ts@@ -83,7 +83,7 @@ export default class FindInHtml {async findBoxClosed(totalFound: number, currentFound: number) {const $content = await this.parent?.noteContext?.getContentElement();- if ($content) {+ if (typeof $content?.unmark === 'function') {$content.unmark();}}