Skip to content

Commit a68463e

Browse files
committed
fix: Fix variable-assign-node cannot publish
--bug=1052464 --user=刘瑞斌 【应用】-编排应用中存在变量赋值节点,发布应用失败 https://www.tapd.cn/57709429/s/1659401
1 parent 68b9225 commit a68463e

File tree

1 file changed

+7
-4
lines changed
  • ui/src/workflow/nodes/variable-assign-node

1 file changed

+7
-4
lines changed

ui/src/workflow/nodes/variable-assign-node/index.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,14 @@ const nodeCascaderRef = ref()
209209
const nodeCascaderRef2 = ref()
210210
const validate = async () => {
211211
// console.log(replyNodeFormRef.value.validate())
212-
return Promise.all([
212+
let ps = [
213213
replyNodeFormRef.value?.validate(),
214-
...nodeCascaderRef.value.map((item: any) => item.validate()),
215-
...nodeCascaderRef2.value.map((item: any) => item.validate())
216-
]).catch((err: any) => {
214+
...nodeCascaderRef.value.map((item: any) => item.validate())
215+
]
216+
if (nodeCascaderRef2.value) {
217+
ps = [...ps, ...nodeCascaderRef.value.map((item: any) => item.validate())]
218+
}
219+
return Promise.all(ps).catch((err: any) => {
217220
return Promise.reject({ node: props.nodeModel, errMessage: err })
218221
})
219222
}

0 commit comments

Comments
 (0)