Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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}>