Fix can not modify required filelist input before starting (#14825)
This commit is contained in:
parent
d88b2dd198
commit
7ff527293a
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export const createFileStore = (
|
|||
onChange?: (files: FileEntity[]) => void,
|
||||
) => {
|
||||
return create<Shape>(set => ({
|
||||
files: [...value],
|
||||
files: value ? [...value] : [],
|
||||
setFiles: (files) => {
|
||||
set({ files })
|
||||
onChange?.(files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue