mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
fix(fe): correct selecting task version when redeploying old version
This commit is contained in:
parent
66279bc391
commit
6fe453f6fe
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user