fix(Reference): add robust judgment

This commit is contained in:
tzhangchi authored and DarkSky committed 2022-08-07 19:58:37 +08:00
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 (