chore: Update Lexical to 0.7.5 (#2117)

This commit is contained in:
Aman Harwara
2022-12-23 22:22:19 +05:30
committed by GitHub
parent 1ec173dcd6
commit 2f3bc9b85b
43 changed files with 217 additions and 164 deletions

View File

@@ -192,9 +192,10 @@ export function AutoEmbedDialog({
const embedResult =
text != null && urlMatch != null ? embedConfig.parseUrl(text) : null;
const onClick = () => {
if (embedResult != null) {
embedConfig.insertNode(editor, embedResult);
const onClick = async () => {
const result = await embedResult;
if (result != null) {
embedConfig.insertNode(editor, result);
onClose();
}
};