mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Fix hidden fields in schema
This commit is contained in:
parent
38da18aec5
commit
a8773687cf
@ -194,7 +194,7 @@ module.exports = async cb => {
|
||||
schemaModel.editDisplay.relations = relationsArray;
|
||||
}
|
||||
|
||||
schemaModel.editDisplay.fields = Object.keys(schemaModel.editDisplay.availableFields);
|
||||
schemaModel.editDisplay.fields = Object.keys(schemaModel.editDisplay.availableFields).filter(field => !fieldsToRemove.includes(field));
|
||||
|
||||
if (plugin) {
|
||||
return _.set(schema.models.plugins, `${plugin}.${name}`, schemaModel);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user