Skip to content

Commit

Permalink
fix: Fix Refreshing Sidebar Configuration Settings - MEED-7892 - Meed…
Browse files Browse the repository at this point in the history
…s-io/MIPs#159 (#4216)

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.
  • Loading branch information
boubaker committed Dec 3, 2024
1 parent 477bd0b commit 23cba5d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 23cba5d

Please sign in to comment.