mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
Merge pull request #2354 from henrych4/fix-path-of-contentTypes
Fix path of contentTypesToShow
This commit is contained in:
commit
2edd056f66
@ -41,7 +41,7 @@ function LeftMenuLinkContainer({ layout, plugins }) {
|
||||
}, {});
|
||||
|
||||
const linkSections = Object.keys(pluginsSections).map((current, j) => {
|
||||
const contentTypesToShow = get(layout, 'layout.contentTypesToShow');
|
||||
const contentTypesToShow = get(layout, 'contentTypesToShow');
|
||||
const contentTypes = contentTypesToShow
|
||||
? pluginsSections[current].links.filter(
|
||||
obj => findIndex(contentTypesToShow, ['destination', obj.destination]) !== -1,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user