fix(fe): correct selecting task version when redeploying old version

This commit is contained in:
Denis Gukov 2022-02-04 17:41:19 +05:00
parent 66279bc391
commit 6fe453f6fe

View File

@ -245,8 +245,10 @@ export default {
responseType: 'json',
})).data.filter((task) => task.status === 'success') : [];
if (this.buildTasks.length > 0) {
this.item.build_task_id = this.build_task ? this.build_task.id : this.buildTasks[0].id;
if (this.item.build_task_id == null
&& this.buildTasks.length > 0
&& this.buildTasks.length > 0) {
this.item.build_task_id = this.buildTasks[0].id;
}
},