fixed bug dropzone rejecting json file

This commit is contained in:
Abhinav-grd 2021-01-15 12:09:32 +05:30
parent eb7cd41e00
commit 36b4eab2f0
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export default function AddCollection(props) {
onDropAccepted={createCollection} onDropAccepted={createCollection}
onDropRejected={closeUploadModal} onDropRejected={closeUploadModal}
noDragEventsBubbling noDragEventsBubbling
accept="image/*, video/*, application/json " accept="image/*, video/*, application/json,"
> >
{({ {({
getRootProps, getRootProps,

View file

@ -56,7 +56,7 @@ const CollectionDropZone = ({
onDropAccepted={upload} onDropAccepted={upload}
onDropRejected={closeModal} onDropRejected={closeModal}
noDragEventsBubbling noDragEventsBubbling
accept="image/*, video/*, application/json " accept="image/*, video/*, application/json, "
> >
{({ {({
getRootProps, getRootProps,