fix(web): workflow knowledge save

This commit is contained in:
zhaoying
2026-04-29 11:43:30 +08:00
parent 4d7f9c4dae
commit 6197d698a2

View File

@@ -1310,7 +1310,7 @@ export const useWorkflowGraph = ({
...itemConfig,
...(data.config[key].defaultValue || {}),
knowledge_bases: knowledge_bases?.map((vo: any) => {
const kb_config = vo.config || { similarity_threshold: vo.similarity_threshold, retrieve_type: vo.retrieve_type, top_k: vo.top_k, weight: vo.weight }
const kb_config = vo.config || vo
return { kb_id: vo.kb_id || vo.id, ...kb_config, }
})
}