From 94bbbef2d08c913347123cb0a718f6391d0338dc Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Thu, 8 Mar 2018 08:14:49 +0100 Subject: [PATCH] Bug fixed address observations --- client/client/src/address-edit/address-edit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client/src/address-edit/address-edit.js b/client/client/src/address-edit/address-edit.js index 4d73dc215..a715dc8a4 100644 --- a/client/client/src/address-edit/address-edit.js +++ b/client/client/src/address-edit/address-edit.js @@ -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);