Commit ca962e51 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '4473-fix-rebase-status-check-axios' into 'master'

Fix rebase status check throwing flash message

Closes #4473

See merge request gitlab-org/gitlab-ee!3922
parents 38521d11 2bde5b8d
......@@ -57,7 +57,7 @@
},
checkRebaseStatus(continuePolling, stopPolling) {
this.service.poll()
.then(res => res.json())
.then(res => res.data)
.then((res) => {
if (res.rebase_in_progress) {
continuePolling();
......
......@@ -88,11 +88,9 @@ describe('Merge request widget rebase component', () => {
},
poll() {
return Promise.resolve({
json() {
return {
rebase_in_progress: false,
merge_error: null,
};
data: {
rebase_in_progress: false,
merge_error: null,
},
});
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment