diff --git a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 index a196832d928650511fb1d11118d573cd2ed61da3..74a79dcedae02b3b35a01025d7be3b616712a3ba 100644 --- a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 @@ -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 = '';