diff --git a/packages/builder/src/builderStore/jsonUtils.js b/packages/builder/src/builderStore/jsonUtils.js index 6f6db763a6..74e6863126 100644 --- a/packages/builder/src/builderStore/jsonUtils.js +++ b/packages/builder/src/builderStore/jsonUtils.js @@ -28,7 +28,10 @@ const extractJSONSchemaKeys = (jsonSchema, squashObjects = false) => { Object.keys(jsonSchema).forEach(key => { const type = jsonSchema[key].type if (type === "json" && squashObjects) { - const childKeys = extractJSONSchemaKeys(jsonSchema[key].schema) + const childKeys = extractJSONSchemaKeys( + jsonSchema[key].schema, + squashObjects + ) keys = keys.concat( childKeys.map(childKey => ({ key: `${key}.${childKey.key}`,