Skip to content

Commit

Permalink
Merge pull request #2458 from SUI-Components/feature/molecule-photoup…
Browse files Browse the repository at this point in the history
…loader-extended-info-at-uploaded-callback

feat(components/molecule/photoUploader): send extended info on photos uploaded callback
  • Loading branch information
quinwacca authored Nov 8, 2022
2 parents 12ca6a0 + b925591 commit df2120f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions components/molecule/photoUploader/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,10 @@ const MoleculePhotoUploader = forwardRef(

const _callbackPhotosUploaded = (list, ...rest) => {
const blobsArray = list.reduce((array, currentFile) => {
const {blob, url, isNew, isModified, hasErrors, file, preview, id} =
currentFile
const {originalBase64, preview, ...restOfCurrentFile} = currentFile
array.push({
blob,
url,
isNew,
isModified,
hasErrors,
file,
previewUrl: preview,
id
...restOfCurrentFile
})
return [...array]
}, [])
Expand Down

0 comments on commit df2120f

Please sign in to comment.