mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
Ignore file model in the CTB
This commit is contained in:
parent
988a8d530d
commit
da1ead5e7b
@ -48,4 +48,4 @@
|
||||
"npm": ">= 5.3.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user