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
1 changed files with 4 additions and 1 deletions

View File

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