Sidepanel - templates, controllers
[groupbasedpolicy.git] / groupbasedpolicy-ui / module / src / main / resources / gbp / endpoints / endpoint.service.js
index 42aa4fb5125b311634e51e5a624a17817c5dc1a6..53a38f556cd99a2ee0c32fdc42f8aed27074b92a 100644 (file)
@@ -100,8 +100,8 @@ define([], function () {
                             ],
                         },
                     };
-                return restObj.customPOST(reqData).then(function (data) {
-                    successCallback(data);
+                return restObj.customPOST(reqData).then(function () {
+                    (successCallback() || angular.noop)();
                 }, function () {
 
                 });