Skip to content

Commit 94af9e4

Browse files
authored
fix: When adding a new node, the default execution condition is' all ', which often results in errors. Adjust it to default to any (#4443)
1 parent d835e24 commit 94af9e4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ function clickNodes(item: any, data?: any) {
177177
})),
178178
}
179179
}
180+
item['properties']['condition'] = 'OR'
180181
props.workflowRef?.addNode(item)
181182
182183
emit('clickNodes', item)
@@ -188,6 +189,7 @@ function onmousedown(item: any, data?: any) {
188189
if (data.tool_type == 'DATA_SOURCE') {
189190
item['properties'].kind = WorkflowKind.DataSource
190191
}
192+
191193
item['properties']['node_data'] = {
192194
...data,
193195
tool_lib_id: data.id,
@@ -197,6 +199,7 @@ function onmousedown(item: any, data?: any) {
197199
})),
198200
}
199201
}
202+
item['properties']['condition'] = 'OR'
200203
props.workflowRef?.onmousedown(item)
201204
emit('onmousedown', item)
202205
}

ui/src/components/workflow-dropdown-menu/knowledge/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ function clickNodes(item: any, data?: any) {
199199
})),
200200
}
201201
}
202+
item['properties']['condition'] = 'OR'
202203
props.workflowRef?.addNode(item)
203-
204204
emit('clickNodes', item)
205205
}
206206
@@ -219,6 +219,7 @@ function onmousedown(item: any, data?: any) {
219219
})),
220220
}
221221
}
222+
item['properties']['condition'] = 'OR'
222223
props.workflowRef?.onmousedown(item)
223224
emit('onmousedown', item)
224225
}

0 commit comments

Comments
 (0)