Rework deploy/undeploy UI
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / ToscaModelCtrl.js
index 1901d95..2ef866c 100644 (file)
@@ -89,7 +89,7 @@ app.controller('ToscaModelCtrl',
                var policyType = $rootScope.selectedBoxName;
             var data = $scope.getEditorData();
             if(data !== null) {
-               var msJson = JSON.parse(JSON.stringify(getMsJson(policyType)));
+               var msJson = getMsJson(policyType);
                msJson["properties"] = data[0];
                toscaModelService.saveMsProperties(msJson).then(function(pars) {
                        updateMsProperties(policyType, msJson);