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
fix(react/promoted_attributes): removing relation sometimes not refreshing
Elian Doran320f06477592
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.tsx b/apps/client/src/widgets/react/NoteAutocomplete.tsxindex c61285603d..297bde4d33 100644--- a/apps/client/src/widgets/react/NoteAutocomplete.tsx+++ b/apps/client/src/widgets/react/NoteAutocomplete.tsx@@ -95,7 +95,7 @@ export default function NoteAutocomplete({ id, inputRef: externalInputRef, text,$autoComplete.autocomplete("val", "").trigger("change");ref.current.value = "";}- }, [text, noteId]);+ }); // no inputs is intentional to enforce the text of the autocomplete, which is modified externally by the autocomplete.return (<div className="input-group" style={containerStyle}>