display a content type based on layout schema

This commit is contained in:
henrych4 2018-11-27 20:55:25 +08:00
parent cd572b0f80
commit 84921e3f76

View File

@ -52,7 +52,7 @@ class SettingsPage extends React.PureComponent {
}, []);
return sortBy(
models.filter(obj => obj.name !== 'permission' && obj.name !== 'role'),
models.filter(obj => !!this.props.schema.layout[obj.name]),
['name'],
);
}