mirror of
https://github.com/strapi/strapi.git
synced 2025-12-05 11:32:13 +00:00
display a content type based on layout schema
This commit is contained in:
parent
cd572b0f80
commit
84921e3f76
@ -52,7 +52,7 @@ class SettingsPage extends React.PureComponent {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return sortBy(
|
return sortBy(
|
||||||
models.filter(obj => obj.name !== 'permission' && obj.name !== 'role'),
|
models.filter(obj => !!this.props.schema.layout[obj.name]),
|
||||||
['name'],
|
['name'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user