Skip to content

Commit b54abb1

Browse files
committed
fix: some bugfix
1 parent 4cfdf81 commit b54abb1

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/frontend/platform/public/locales/en-US/bs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,7 @@
14961496
"10952": "Document parsing failed",
14971497
"10953": "File parsing error: {{exception}}",
14981498
"10960": "Not a QA knowledge base",
1499+
"10961": "Model returns incorrect format:{{message}}",
14991500
"10970": "Knowledge base not found",
15001501
"10971": "Knowledge base file not found",
15011502
"10980": "{{field_name}} conflicts with built-in metadata fields",

src/frontend/platform/public/locales/ja/bs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,7 @@
14791479
"10952": "文書解析に失敗しました",
14801480
"10953": "解析エラー:{{exception}}",
14811481
"10960": "QAナレッジベースではありません",
1482+
"10961": "ナレッジベースのタイプが不正です:{{message}}",
14821483
"10970": "ナレッジベースが見つかりません",
14831484
"10971": "ナレッジベースのファイルが見つかりません",
14841485
"10980": "{{field_name}} は内蔵フィールドと衝突しています",

src/frontend/platform/public/locales/zh-Hans/bs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@
14531453
"10952": "文档解析失败",
14541454
"10953": "文件解析失败: {{exception}}",
14551455
"10960": "不是QA知识库",
1456+
"10961": "模型返回格式错误:{{message}}",
14561457
"10970": "知识库不存在",
14571458
"10971": "知识库文件不存在",
14581459
"10980": "{{field_name}} 与内置元数据字段名称冲突",

src/frontend/platform/src/pages/KnowledgePage/filesUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export default function FilesUpload() {
242242
const { uniqueObjs, removedPaths } = dedupeWithRemovedPaths(objs)
243243
const newResultFiles = resultFiles.filter(file => !removedPaths[file.file_path])
244244
const newUniqueObjs = uniqueObjs.map(item => {
245-
const file = newResultFiles.find(f => item.id === f.fileId)
245+
const file = newResultFiles.find(f => item.id === f.fileId || item.file_name === f.fileName)
246246
return {
247247
...item,
248248
file_path: file?.file_path,

0 commit comments

Comments
 (0)