1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

fix(example): no action when cancel a file prompt (#5082)

This commit is contained in:
donaldkicksyourass 2022-08-18 20:19:14 +08:00 committed by GitHub
parent 50de780b1c
commit e9273366b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ const InsertImageButton = () => {
alert('URL is not an image')
return
}
insertImage(editor, url)
url && insertImage(editor, url)
}}
>
<Icon>image</Icon>