Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/src/workflow/common/NodeContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const editName = async (formEl: FormInstance | undefined) => {
?.some((node: any) => node.properties.stepName === form.value.title)
) {
set(props.nodeModel.properties, 'stepName', form.value.title)
props.nodeModel.clear_next_node_field(true)
nodeNameDialogVisible.value = false
formEl.resetFields()
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No significant irregularities, issues, or optimizations were found in the provided code snippet. It updates an object property if it exists within an array of child nodes, sets a dialog visibility flag to false, resets field values from a form instance, and optionally clears fields on the next node after updating.

The changes include setting properties directly on props.nodeModel.properties with bracket notation for more flexibility and clearing next-node fields using ?.clear_next_node_field(true). This makes the code concise and easy to understand while meeting the requirements.

Expand Down
Loading