Commit 04b4a76048f3e5ee550f69a94b8d746da15c91d8
1 parent
35feb2fe
Removed reset form from update entity
Showing
1 changed file
with
1 additions
and
2 deletions
... | ... | @@ -65,7 +65,6 @@ export abstract class EntityComponent<T extends BaseData<HasId>, |
65 | 65 | set entity(entity: T) { |
66 | 66 | this.entityValue = entity; |
67 | 67 | if (this.entityForm) { |
68 | - this.entityForm.reset(undefined, {emitEvent: false}); | |
69 | 68 | this.entityForm.markAsPristine(); |
70 | 69 | this.updateForm(entity); |
71 | 70 | } |
... | ... | @@ -124,7 +123,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, |
124 | 123 | if (isString(obj[curr])) { |
125 | 124 | acc[curr] = obj[curr].trim(); |
126 | 125 | } else if (isObject(obj[curr])) { |
127 | - acc[curr] = this.deepTrim(obj[curr]) | |
126 | + acc[curr] = this.deepTrim(obj[curr]); | |
128 | 127 | } else { |
129 | 128 | acc[curr] = obj[curr]; |
130 | 129 | } | ... | ... |