Bug fixed address observations

This commit is contained in:
Daniel Herrero 2018-03-08 08:14:49 +01:00
parent 6eaaa6dde5
commit 94bbbef2d0
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ export default class Controller {
this._setDirtyForm();
}
}
if (this.observations.length === 0 && Object.keys(this.observationsOld).length === 0) {
this._unsetDirtyForm();
}
}
_submitObservations(objectObservations) {
return this.$http.post(`/client/api/AddressObservations/crudAddressObservations`, objectObservations);