diff --git a/app/editor/components/LinkEditor.tsx b/app/editor/components/LinkEditor.tsx index 9c5fdde2bb..556ec0c42e 100644 --- a/app/editor/components/LinkEditor.tsx +++ b/app/editor/components/LinkEditor.tsx @@ -180,8 +180,11 @@ const LinkEditor: React.FC = ({ } }; - const handleSearch = async (event: React.ChangeEvent) => { + const handleSearch = (event: React.ChangeEvent) => { const newValue = event.target.value; + if (newValue === query) { + return; + } setQuery(newValue); setSelectedIndex(-1); };