Skip to content

Commit

Permalink
Fix saving UI settings without changes (geonetwork#8440)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose García <[email protected]>
  • Loading branch information
geonetworkbuild and josegar74 authored Oct 16, 2024
1 parent 4e7de86 commit ba82449
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@
"../api/ui" + (isUpdate ? "/" + newid : ""),
{
id: newid,
configuration: isUpdate ? $scope.uiConfiguration.configuration : null
configuration: isUpdate
? typeof $scope.uiConfiguration.configuration === "string"
? $scope.uiConfiguration.configuration
: JSON.stringify($scope.uiConfiguration.configuration, null, 2)
: null
},
{ responseType: "text" }
)
Expand Down

0 comments on commit ba82449

Please sign in to comment.