mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 02:34:05 +02:00
fix(example): no action when cancel a file prompt (#5082)
This commit is contained in:
committed by
GitHub
parent
50de780b1c
commit
e9273366b9
@@ -141,7 +141,7 @@ const InsertImageButton = () => {
|
|||||||
alert('URL is not an image')
|
alert('URL is not an image')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
insertImage(editor, url)
|
url && insertImage(editor, url)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon>image</Icon>
|
<Icon>image</Icon>
|
||||||
|
Reference in New Issue
Block a user