Skip to content
Snippets Groups Projects
Commit c96e86f2 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fixes #355

parent 8250bf08
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ export default {
return [];
}
const blockSections = JSON.parse(JSON.stringify(this.container.attributes.payload.sections)); //copy array AND objects without references
const blockSections = _.cloneDeep(this.container.attributes.payload.sections);
blockSections.forEach((section) => {
if(section.blocks !== undefined) {
......@@ -261,10 +261,8 @@ export default {
},
watch: {
container: {
handler(state, prevState) {
if (state.attributes.payload.sections[0].blocks !== prevState.attributes.payload.sections[0].blocks) {
this.initSections();
}
handler() {
this.initSections();
},
deep: true
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment