fix: No need to additionally sanitize the components. They've allready been sanitized because their parent was santized.
parent
0a10b1907d
commit
b9527532b6
|
@ -232,19 +232,6 @@ const ConfigType = class ConfigType {
|
||||||
formattedConfig[relationName] = relations;
|
formattedConfig[relationName] = relations;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (Array.isArray(this.components)) {
|
|
||||||
this.components
|
|
||||||
.filter((componentFields) => !componentFields.includes("."))
|
|
||||||
.map((componentFields) => {
|
|
||||||
formattedConfig[componentFields] = formattedConfig[
|
|
||||||
componentFields
|
|
||||||
].map((fields) => {
|
|
||||||
sanitizeConfig(fields);
|
|
||||||
return fields;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
this.jsonFields.map((field) => formattedConfig[field] = JSON.parse(config[field]));
|
this.jsonFields.map((field) => formattedConfig[field] = JSON.parse(config[field]));
|
||||||
configs[`${this.configPrefix}.${combinedUid}`] = formattedConfig;
|
configs[`${this.configPrefix}.${combinedUid}`] = formattedConfig;
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue