Fix for task dates update (#23)
This commit is contained in:
parent
78abd2e88f
commit
6603c046bc
1 changed files with 5 additions and 3 deletions
|
@ -207,9 +207,9 @@ export default class AbstractService {
|
|||
* @param model
|
||||
* @return {*}
|
||||
*/
|
||||
beforeUpdate(model) {
|
||||
/* beforeUpdate(model) {
|
||||
return model
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Default preprocessor for delete requests
|
||||
|
@ -315,7 +315,9 @@ export default class AbstractService {
|
|||
}
|
||||
|
||||
const cancel = this.setLoading()
|
||||
model = this.beforeUpdate(model)
|
||||
if(typeof this.beforeUpdate === 'function') {
|
||||
model = this.beforeUpdate(model)
|
||||
}
|
||||
return this.http.post(this.getReplacedRoute(this.paths.update, model), model)
|
||||
.catch(error => {
|
||||
return this.errorHandler(error)
|
||||
|
|
Loading…
Reference in a new issue