diff --git a/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js b/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js index d62c4d70814..b6cc6fab770 100644 --- a/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js +++ b/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js @@ -410,7 +410,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" } )