Merge remote-tracking branch 'origin/angular-13' into angular-14
This commit is contained in:
commit
105e5066f2
|
@ -14,7 +14,7 @@ export class CustomizationService {
|
|||
const isArray = obj instanceof Array;
|
||||
for (let k in obj) {
|
||||
if (obj[k] === null || obj[k] === '') {
|
||||
isArray ? obj.splice(k, 1) : delete obj[k];
|
||||
isArray ? obj.splice(Number.parseInt(k), 1) : delete obj[k];
|
||||
} else if (typeof obj[k] === 'object') {
|
||||
CustomizationService.removeNulls(obj[k]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue