From a3c6d6800b648bf663e3a1b07b1f9a312b9a9729 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Sun, 3 Sep 2023 22:59:11 +0800 Subject: [PATCH] fix: file id --- client/src/pages/kb/detail/components/Import/FileSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/kb/detail/components/Import/FileSelect.tsx b/client/src/pages/kb/detail/components/Import/FileSelect.tsx index e52aedd3c..85d3789b9 100644 --- a/client/src/pages/kb/detail/components/Import/FileSelect.tsx +++ b/client/src/pages/kb/detail/components/Import/FileSelect.tsx @@ -109,7 +109,7 @@ const FileSelect = ({ } return ''; })(), - uploadFiles(files, (percent) => { + uploadFiles([file], (percent) => { if (percent < 100) { setSelectingText( t('file.Uploading', { name: file.name.slice(0, 20), percent }) || ''