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 @@ ...@@ -57,7 +57,7 @@
}, },
checkRebaseStatus(continuePolling, stopPolling) { checkRebaseStatus(continuePolling, stopPolling) {
this.service.poll() this.service.poll()
.then(res => res.json()) .then(res => res.data)
.then((res) => { .then((res) => {
if (res.rebase_in_progress) { if (res.rebase_in_progress) {
continuePolling(); continuePolling();
......
...@@ -88,11 +88,9 @@ describe('Merge request widget rebase component', () => { ...@@ -88,11 +88,9 @@ describe('Merge request widget rebase component', () => {
}, },
poll() { poll() {
return Promise.resolve({ return Promise.resolve({
json() { data: {
return {
rebase_in_progress: false, rebase_in_progress: false,
merge_error: null, 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