app/frontend/editor/store/getters.js in maglevcms-1.7.2 vs app/frontend/editor/store/getters.js in maglevcms-1.7.3
- old
+ new
@@ -31,10 +31,11 @@
) => {
const pageContent = services.page.denormalize(page, {
sections,
blocks: sectionBlocks,
})
+
const siteSections = pageContent.sections.filter(
(sectionContent) => getSectiondefinition(sectionContent).siteScoped,
)
const hasModifiedSiteScopedSections = siteSections.some(
(sectionContent) => touchedSections.indexOf(sectionContent.id) !== -1,
@@ -56,10 +57,10 @@
},
sectionDefinition:
({ theme }) =>
(sectionContent) => {
return theme.sections.find(
- (definition) => definition['id'] === sectionContent['type'],
+ (definition) => definition['id'] === sectionContent['type']
)
},
sectionSettings:
({ sectionDefinition }) =>
(advanced) => {