Browse Source

UI: Refactoring function name

pull/11096/head
Artem Dzhereleiko 2 years ago
parent
commit
aa23fa2722
  1. 4
      ui-ngx/src/app/core/utils.ts

4
ui-ngx/src/app/core/utils.ts

@ -364,14 +364,14 @@ export function mergeDeep<T>(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<T>(target: T, ...sources: T[]): T {
return _.mergeWith(target, ...sources, customizer);
return _.mergeWith(target, ...sources, ignoreArrayMergeFunc);
}
export function guid(): string {

Loading…
Cancel
Save