fix flash and request logic in stage
This commit is contained in:
parent
9c5524dfda
commit
a812a91510
1 changed files with 5 additions and 3 deletions
|
@ -19,9 +19,11 @@
|
|||
.then((response) => {
|
||||
this.request = true;
|
||||
this.builds = JSON.parse(response.body).html;
|
||||
}, () => new Flash(
|
||||
'Something went wrong on our end.',
|
||||
));
|
||||
}, () => {
|
||||
const flash = new Flash('Something went wrong on our end.');
|
||||
this.request = false;
|
||||
return flash;
|
||||
});
|
||||
},
|
||||
clearBuilds() {
|
||||
this.builds = '';
|
||||
|
|
Loading…
Reference in a new issue