fix(Reference): add robust judgment
This commit is contained in:
1 parent
af40927b0a
commit
450a54bcb9
1 file changed
+1
-1
@@ -116,7 +116,7 @@ export const ReferenceMenu = ({ editor, hooks, style }: ReferenceMenuProps) => {
|
||||
};
|
||||
|
||||
const handle_close = () => {
|
||||
editor.blockHelper.removeSearchSlash(block_id);
|
||||
block_id && editor.blockHelper.removeSearchSlash(block_id);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user