Skip to content

Commit

Permalink
Remove unmount logic from Upload component
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Dec 13, 2024
1 parent 338b195 commit f72b7ec
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/dnb-eufemia/src/components/upload/Upload.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect } from 'react'
import React, { useCallback } from 'react'
import classnames from 'classnames'

// Shared
Expand Down Expand Up @@ -76,12 +76,6 @@ const Upload = (localProps: UploadAllProps) => {
const { files, setFiles, setInternalFiles, getExistingFile } =
useUpload(id)

useEffect(() => {
return () => {
setFiles([])
}
}, [])

const onInputUpload = useCallback(
(newFiles: Array<UploadFile>) => {
const mergedFiles = [
Expand Down

0 comments on commit f72b7ec

Please sign in to comment.