Skip to content

Commit 923e451

Browse files
fix: Fix upload file error
1 parent c00738d commit 923e451

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ui/src/views/knowledge-workflow/component/action/DataSource.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ const validate = () => {
144144
return dynamicsFormRef.value?.validate()
145145
}
146146
const filterSuccessFiles = (data: any): any => {
147-
return data?.file_list?.filter((f: any) => f.status === 'success') || []
147+
return {
148+
...data,
149+
file_list: data?.file_list?.filter((f: any) => f.status === 'success') || [],
150+
}
148151
}
149152
const get_data = () => {
150153
return filterSuccessFiles(form_data.value)

0 commit comments

Comments
 (0)