mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 11:02:26 +03:00
Merge pull request #132 from toeverything/fix/deal-reference-warning
fix(Reference): add robust judgment
This commit is contained in:
commit
6b17c6b854
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user