fix: No need to additionally sanitize the components. They've allready been sanitized because their parent was santized.

pull/93/head
Boaz Poolman 2023-09-06 16:09:23 +02:00
parent 0a10b1907d
commit b9527532b6
1 changed files with 0 additions and 13 deletions

View File

@ -232,19 +232,6 @@ const ConfigType = class ConfigType {
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]));
configs[`${this.configPrefix}.${combinedUid}`] = formattedConfig;
}));