From df281c71ddb75b4f42ae484143487ddb0e48013b Mon Sep 17 00:00:00 2001 From: DawnARC Date: Fri, 17 Apr 2026 08:44:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dknowledgebase=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=E8=AF=A6=E6=83=85=E7=B1=BB=E5=9E=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅保留knowledge-base页面的类型约束修复,解决反馈纠错详情字段在联合类型下触发的TS构建错误,不再包含package-lock变更。 --- dashboard/src/routes/resource/knowledge-base.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/routes/resource/knowledge-base.tsx b/dashboard/src/routes/resource/knowledge-base.tsx index 5cc3602f..561f8b97 100644 --- a/dashboard/src/routes/resource/knowledge-base.tsx +++ b/dashboard/src/routes/resource/knowledge-base.tsx @@ -1719,7 +1719,7 @@ export function KnowledgeBasePage() { } }, [selectedFeedbackCorrection?.task_id]) - const selectedFeedbackResolved = useMemo(() => { + const selectedFeedbackResolved = useMemo(() => { if (!selectedFeedbackCorrection) { return null } @@ -1732,7 +1732,7 @@ export function KnowledgeBasePage() { return selectedFeedbackTaskDetail ?? selectedFeedbackCorrection }, [selectedFeedbackCorrection, selectedFeedbackTaskDetail]) - const selectedFeedbackActionLogs = Array.isArray(selectedFeedbackResolved?.action_logs) + const selectedFeedbackActionLogs: MemoryFeedbackActionLogPayload[] = Array.isArray(selectedFeedbackResolved?.action_logs) ? selectedFeedbackResolved.action_logs : [] const filteredFeedbackActionLogs = useMemo(() => {