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 937bcd8e89a..47542f48bcc 100644 --- a/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js +++ b/web-ui/src/main/resources/catalog/js/admin/SystemSettingsController.js @@ -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" } )