Skip to content

Commit 976032e

Browse files
committed
fix: Clicking on the website data source cannot open the data source settings interface
1 parent 5cfd88e commit 976032e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ provide('get_extra', get_extra)
111111
const sourceChange = (node_id: string) => {
112112
base_form_data.value.node_id = node_id
113113
const n = source_node_list.value.find((n: any) => n.id == node_id)
114-
extra.value.current_tool_id = n.properties.node_data.tool_lib_id
114+
if (n.properties.node_data && n.properties.node_data.tool_lib_id) {
115+
extra.value.current_tool_id = n.properties.node_data.tool_lib_id
116+
}
115117
node_id = n
116118
? [WorkflowType.DataSourceLocalNode, WorkflowType.DataSourceWebNode].includes(n.type)
117119
? n.type

0 commit comments

Comments
 (0)