fix(Reference): add robust judgment

This commit is contained in:
tzhangchi
2022-08-07 19:24:39 +08:00
committed by DarkSky
parent af40927b0a
commit 450a54bcb9

View File

@@ -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 (