Skip to content

Commit

Permalink
fix: pass filesToUpload to drop zone
Browse files Browse the repository at this point in the history
otherwise it didn't hide files list on the refresh
  • Loading branch information
wojtek-krysiak committed Oct 14, 2020
1 parent 765dc8a commit a15237f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/features/upload-file/components/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const Edit: FC<EditPropertyProps> = ({ property, record, onChange }) => {
mimeTypes: custom.mimeTypes as Array<string>,
maxSize: custom.maxSize,
}}
files={filesToUpload}
/>
{!custom.multiple && key && path && !filesToUpload.length && file !== null && (
<DropZoneItem filename={key} src={path} onRemove={handleRemove} />
Expand Down

0 comments on commit a15237f

Please sign in to comment.