From 7d61a453f87678c0db557fc90bc6144835d541c3 Mon Sep 17 00:00:00 2001 From: dengbeifen Date: Sat, 19 Apr 2025 14:42:23 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=86=8D=E6=AC=A1=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/deploy/pipeline/pipeline-edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pages/deploy/pipeline/pipeline-edit.vue b/src/views/pages/deploy/pipeline/pipeline-edit.vue index 56b4a77be..2f416d8f1 100644 --- a/src/views/pages/deploy/pipeline/pipeline-edit.vue +++ b/src/views/pages/deploy/pipeline/pipeline-edit.vue @@ -289,7 +289,7 @@ export default { console.log(JSON.stringify(jobTemplateData, null, 2)); if (!this.$utils.isEmpty(this.currentGroup)) { const index = this.currentGroup.jobTemplateList.findIndex(job => { - return job.id === jobTemplateData.id || job.uuid === jobTemplateData.uuid; + return (job.id && job.id === jobTemplateData.id) || (job.uuid && job.uuid === jobTemplateData.uuid); }); if (index > -1) { this.$set(this.currentGroup.jobTemplateList, index, jobTemplateData); -- Gitee