Skip to content

Build your personal knowledge base with Trilium Notes

Revert "fix(react/promoted_attributes): removing relation sometimes not refreshing"

Elian Doran1cca15ca5db7
diff --git a/apps/client/src/widgets/react/NoteAutocomplete.tsx b/apps/client/src/widgets/react/NoteAutocomplete.tsx
index 297bde4d33..c61285603d 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 = "";
}
- }); // no inputs is intentional to enforce the text of the autocomplete, which is modified externally by the autocomplete.
+ }, [text, noteId]);
return (
<div className="input-group" style={containerStyle}>