Update lock version after request
This commit is contained in:
parent
1362267d45
commit
515f4b46ab
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue