From f38292fdf5ee0af5d1fbfceb066807dbb2268944 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Tue, 3 Dec 2024 12:41:55 +0100 Subject: [PATCH] fix: Fix Refreshing Sidebar Configuration Settings - MEED-7892 - Meeds-io/MIPs#159 Prior to this change, the settings was lightweighted in Service JS file before sent to server, making the changes on the original Vue object. This change ensures to make the lightweight operation in a cloned object instead of the original one. --- .../general-settings/js/NavigationConfigurationService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/src/main/webapp/vue-apps/general-settings/js/NavigationConfigurationService.js b/webapp/src/main/webapp/vue-apps/general-settings/js/NavigationConfigurationService.js index 3a1a9c5ace4..e3fa5a7bec3 100644 --- a/webapp/src/main/webapp/vue-apps/general-settings/js/NavigationConfigurationService.js +++ b/webapp/src/main/webapp/vue-apps/general-settings/js/NavigationConfigurationService.js @@ -32,6 +32,7 @@ export function getConfiguration() { } export function saveConfiguration(configuration) { + configuration = JSON.parse(JSON.stringify(configuration)); configuration.sidebar.items.forEach(item => delete item.items); return fetch('/social/rest/navigation/settings', { headers: {