fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-08 01:49:38 +01:00
parent 1ae72169b2
commit b4f780216f

View File

@ -1,6 +1,9 @@
export const toFlatObject = (objectArg: object) => { export const toFlatObject = (objectArg: object) => {
const returnObject: {[key: string]: any} = {}; const returnObject: {[key: string]: any} = {};
const extractLayer = (subObject: {[key: string]: any}, pathArg: string, loopProtection: object[]) => { const extractLayer = (subObject: {[key: string]: any}, pathArg: string, loopProtection: object[]) => {
if (loopProtection.indexOf(subObject) > -1) {
return;
}
if (subObject) if (subObject)
for (const key of Object.keys(subObject)) { for (const key of Object.keys(subObject)) {
let localPathArg = pathArg; let localPathArg = pathArg;