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,7 +65,6 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | ||
65 | set entity(entity: T) { | 65 | set entity(entity: T) { |
66 | this.entityValue = entity; | 66 | this.entityValue = entity; |
67 | if (this.entityForm) { | 67 | if (this.entityForm) { |
68 | - this.entityForm.reset(undefined, {emitEvent: false}); | ||
69 | this.entityForm.markAsPristine(); | 68 | this.entityForm.markAsPristine(); |
70 | this.updateForm(entity); | 69 | this.updateForm(entity); |
71 | } | 70 | } |
@@ -124,7 +123,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | @@ -124,7 +123,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | ||
124 | if (isString(obj[curr])) { | 123 | if (isString(obj[curr])) { |
125 | acc[curr] = obj[curr].trim(); | 124 | acc[curr] = obj[curr].trim(); |
126 | } else if (isObject(obj[curr])) { | 125 | } else if (isObject(obj[curr])) { |
127 | - acc[curr] = this.deepTrim(obj[curr]) | 126 | + acc[curr] = this.deepTrim(obj[curr]); |
128 | } else { | 127 | } else { |
129 | acc[curr] = obj[curr]; | 128 | acc[curr] = obj[curr]; |
130 | } | 129 | } |