From f3d7b8e54f706d290d97994b4f7eceac864255e0 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 6 May 2024 14:52:01 +0100 Subject: [PATCH] feat: Allow to edit Page with referenced content - MEED-6783 - Meeds-io/MIPs#131 (#52) Prior to this change, when editing a page, its preferences isn't considered. This change will allow to preserve the portlet preferences in order to keep the same referenced Content. --- .../vue-app/layout-editor/components/LayoutEditor.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/LayoutEditor.vue b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/LayoutEditor.vue index 46ca99087..8008d4f78 100644 --- a/layout-webapp/src/main/webapp/vue-app/layout-editor/components/LayoutEditor.vue +++ b/layout-webapp/src/main/webapp/vue-app/layout-editor/components/LayoutEditor.vue @@ -74,12 +74,8 @@ export default { watch: { pageLoaded() { if (this.pageLoaded) { - this.$pageLayoutService.getPageLayout(this.pageRef, 'contentId') - .then(layout => { - const draftPageLayout = this.$layoutUtils.cleanAttributes(layout, true, false); - return this.$pageLayoutService.updatePageLayout(this.draftPageRef, draftPageLayout, 'contentId') - .then(draftLayout => this.setDraftLayout(draftLayout)); - }); + this.$pageLayoutService.getPageLayout(this.draftPageRef, 'contentId') + .then(draftLayout => this.setDraftLayout(draftLayout)); } }, pageRef: {