Skip to content

Commit

Permalink
fix(example): no action when cancel a file prompt (ianstormtaylor#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldxdonald authored Aug 18, 2022
1 parent 50de780 commit e927336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/examples/images.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const InsertImageButton = () => {
alert('URL is not an image')
return
}
insertImage(editor, url)
url && insertImage(editor, url)
}}
>
<Icon>image</Icon>
Expand Down

0 comments on commit e927336

Please sign in to comment.