Skip to content

Commit 641384d

Browse files
committed
fix: Correct error handling in FormPanel by using oldNode reference for error messages
1 parent 651d583 commit 641384d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/dag/src/components/FormPanel.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ export default {
124124
} catch (e) {
125125
// eslint-disable-next-line no-console
126126
console.error(e)
127-
if (node.type === 'table_rename_processor') {
127+
if (oldNode.type === 'table_rename_processor') {
128128
// 节点的特殊处理,直接拿表单校验结果设置错误信息
129129
this.setNodeErrorMsg({
130-
id: node.id,
130+
id: oldNode.id,
131131
msg: e[0].messages[0]
132132
})
133133
} else {
134-
this.setNodeError(node.id)
134+
this.setNodeError(oldNode.id)
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)