Skip to content

Commit 51855c0

Browse files
committed
fix: Workflow tool - Modify parameter name to match existing parameter name successfully
1 parent 4c69884 commit 51855c0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ui/src/workflow/nodes/tool-base-node/component/input/InputFieldTable.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ function deleteField(index: any) {
8686
const currentIndex = ref<number | null>(null)
8787
function refreshFieldList(data: any) {
8888
if (currentIndex.value !== null) {
89+
if (
90+
inputFieldList.value
91+
.filter((item, index) => index != currentIndex.value)
92+
.some((field) => field.field == data.field)
93+
) {
94+
MsgError(t('workflow.tip.paramErrorMessage') + data.field)
95+
return
96+
}
8997
inputFieldList.value?.splice(currentIndex.value, 1, data)
9098
} else {
9199
if (inputFieldList.value.some((field) => field.field == data.field)) {

0 commit comments

Comments
 (0)