Merge pull request #2354 from henrych4/fix-path-of-contentTypes

Fix path of contentTypesToShow
This commit is contained in:
Jim LAURIE 2018-12-07 17:47:05 +01:00 committed by GitHub
commit 2edd056f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,