Commit 47c85fdcc2b629051073071aade9e27a7c87061a
Committed by
Andrew Shvayka
1 parent
293c999f
fix deepTrim from entity.component
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -129,7 +129,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, |
129 | 129 | acc[curr] = obj[curr]; |
130 | 130 | } |
131 | 131 | return acc; |
132 | - }, {}); | |
132 | + }, Array.isArray(obj) ? [] : {}); | |
133 | 133 | } |
134 | 134 | |
135 | 135 | protected setEntitiesTableConfig(entitiesTableConfig: C) { | ... | ... |