Skip to content

Commit b15404f

Browse files
committed
fix(fe): remove failed builds from availble from deploy list
1 parent f04f1d8 commit b15404f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web2/src/components/TaskForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
keys: 'get',
127127
url: `/api/project/${this.projectId}/templates/${this.template.build_template_id}/tasks`,
128128
responseType: 'json',
129-
})).data.filter((task) => task.version != null) : [];
129+
})).data.filter((task) => task.version != null && task.status === 'success') : [];
130130
131131
if (this.buildTasks.length > 0) {
132132
this.item.build_task_id = this.build_task ? this.build_task.id : this.buildTasks[0].id;

0 commit comments

Comments
 (0)