Skip to content

Commit c80ba01

Browse files
shaohuzhang1liuruibin
authored andcommitted
fix: Workflow session variables cannot be added (#3998)
1 parent 6dc3dc6 commit c80ba01

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)