Skip to content

Commit 371b2f4

Browse files
authored
Merge pull request #9 from joka828/patch-1
make `onContextReady` optional.
2 parents 8bd8216 + 735f709 commit 371b2f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileUpload.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ function FileUpload(props) {
329329

330330
if (onFilesChange) {
331331
onFilesChange(getBase64 ? files : originalFiles)
332-
onContextReady(getContext())
332+
if (onContextReady) onContextReady(getContext())
333333
}
334334
// eslint-disable-next-line
335335
}, [files, action])

0 commit comments

Comments
 (0)