Skip to content

Commit

Permalink
Fix optional function call handleUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
louilinn committed Nov 9, 2023
1 parent 16734d8 commit 7f6d0a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DialogContentUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ const DialogContentUpload = ({
await core.avatar.delete(avatarUploadUrl);
}
setNewAvatarUrl(result.data.url);
handleUpload(result.data.url);
if (handleUpload) {
handleUpload(result.data.url);
}
handleClose();
} catch (error) {
logError(error);
Expand Down

0 comments on commit 7f6d0a2

Please sign in to comment.