Commit 515f4b46 authored by Fatih Acet's avatar Fatih Acet

Update lock version after request

parent 1362267d
......@@ -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);
})
}
}
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