Fix can not modify required filelist input before starting (#14825)

This commit is contained in:
Mars 2025-03-04 10:39:13 +08:00 committed by GitHub
parent d88b2dd198
commit 7ff527293a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)