fix: Clicking on the website data source cannot open the data source settings interface (#4446)

This commit is contained in:
shaohuzhang1 2025-12-05 15:06:15 +08:00 committed by GitHub
parent 5cfd88e64d
commit 3a7818dc9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,9 @@ provide('get_extra', get_extra)
const sourceChange = (node_id: string) => {
base_form_data.value.node_id = node_id
const n = source_node_list.value.find((n: any) => n.id == node_id)
extra.value.current_tool_id = n.properties.node_data.tool_lib_id
if (n.properties.node_data && n.properties.node_data.tool_lib_id) {
extra.value.current_tool_id = n.properties.node_data.tool_lib_id
}
node_id = n
? [WorkflowType.DataSourceLocalNode, WorkflowType.DataSourceWebNode].includes(n.type)
? n.type