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 { ...@@ -172,7 +172,7 @@ export default {
return []; 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) => { blockSections.forEach((section) => {
if(section.blocks !== undefined) { if(section.blocks !== undefined) {
...@@ -261,10 +261,8 @@ export default { ...@@ -261,10 +261,8 @@ export default {
}, },
watch: { watch: {
container: { container: {
handler(state, prevState) { handler() {
if (state.attributes.payload.sections[0].blocks !== prevState.attributes.payload.sections[0].blocks) { this.initSections();
this.initSections();
}
}, },
deep: true deep: true
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment