Update lock version after request

This commit is contained in:
Fatih Acet 2019-01-16 01:33:58 +01:00
parent 1362267d45
commit 515f4b46ab
No known key found for this signature in database
GPG key ID: E994FE39E29B7E11

View file

@ -49,7 +49,10 @@ export default class TaskList {
return axios return axios
.patch($target.data('updateUrl') || $('form.js-issuable-update').attr('action'), patchData) .patch($target.data('updateUrl') || $('form.js-issuable-update').attr('action'), patchData)
.then(({ data }) => this.onSuccess(data))
.catch(({ response }) => this.onError(response.data)); .catch(({ response }) => this.onError(response.data));
.then(({ data }) => {
this.lockVersion = data.lock_version;
return this.onSuccess(data);
})
} }
} }