Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Mars7ff527293ab1
diff --git a/web/app/components/base/file-uploader/store.tsx b/web/app/components/base/file-uploader/store.tsx
index 3ad0b74f053..d15a129358e 100644
--- a/web/app/components/base/file-uploader/store.tsx
+++ b/web/app/components/base/file-uploader/store.tsx
@@ -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)