Merge pull request #1017 from strapi/enhance/ctb

Ignore file model in the CTB
This commit is contained in:
Jim LAURIE 2018-04-24 16:06:28 +02:00 committed by GitHub
commit 6e9dc44aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,10 @@ module.exports = {
const pluginModels = Object.keys(strapi.plugins).reduce((acc, current) => {
_.forEach(strapi.plugins[current].models, (model, name) => {
if (name === 'file') {
return true;
}
acc.push({
icon: 'fa-cube',
name: _.get(model, 'info.name', 'model.name.missing'),