diff --git a/ui-ngx/src/app/core/utils.ts b/ui-ngx/src/app/core/utils.ts index f1283523e1..a534f157b7 100644 --- a/ui-ngx/src/app/core/utils.ts +++ b/ui-ngx/src/app/core/utils.ts @@ -364,14 +364,14 @@ export function mergeDeep(target: T, ...sources: T[]): T { return _.merge(target, ...sources); } -function customizer(target: any, sources: any) { +function ignoreArrayMergeFunc(target: any, sources: any) { if (_.isArray(target)) { return sources; } } export function mergeDeepIgnoreArray(target: T, ...sources: T[]): T { - return _.mergeWith(target, ...sources, customizer); + return _.mergeWith(target, ...sources, ignoreArrayMergeFunc); } export function guid(): string {