Skip to content

Commit 5ed5d27

Browse files
authored
fix: Workflow session variables cannot be added (#3998)
1 parent f4ff796 commit 5ed5d27

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ui/src/workflow/nodes/base-node/component/ChatFieldTable.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,11 @@ function refreshFieldList(data: any, index: any) {
8484
return
8585
}
8686
}
87-
if (index !== undefined) {
88-
inputFieldList.value.splice(index, 1, data)
89-
} else {
87+
if ([undefined, null].includes(index)) {
9088
inputFieldList.value.push(data)
89+
} else {
90+
inputFieldList.value.splice(index, 1, data)
9191
}
92-
9392
ChatFieldDialogRef.value.close()
9493
props.nodeModel.graphModel.eventCenter.emit('chatFieldList')
9594
}

0 commit comments

Comments
 (0)