Ignore file model in the CTB

This commit is contained in:
Aurelsicoko 2018-04-24 14:19:07 +02:00
parent 988a8d530d
commit da1ead5e7b
2 changed files with 5 additions and 1 deletions

View File

@ -48,4 +48,4 @@
"npm": ">= 5.3.0"
},
"license": "MIT"
}
}

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'),