You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2020/03/20 18:57:58 UTC

[trafficcontrol] branch master updated: Missing msg on cache group deletion (#4526)

This is an automated email from the ASF dual-hosted git repository.

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 632b1d9  Missing msg on cache group deletion (#4526)
632b1d9 is described below

commit 632b1d90b0a004f3a2d1766d8e51d8ae38b853ea
Author: Michael Hoppal <54...@users.noreply.github.com>
AuthorDate: Fri Mar 20 12:57:50 2020 -0600

    Missing msg on cache group deletion (#4526)
---
 traffic_portal/app/src/common/api/CacheGroupService.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/traffic_portal/app/src/common/api/CacheGroupService.js b/traffic_portal/app/src/common/api/CacheGroupService.js
index 55f5b99..2459726 100644
--- a/traffic_portal/app/src/common/api/CacheGroupService.js
+++ b/traffic_portal/app/src/common/api/CacheGroupService.js
@@ -73,8 +73,7 @@ var CacheGroupService = function($http, locationUtils, messageModel, ENV) {
     this.deleteCacheGroup = function(id) {
         return $http.delete(ENV.api['root'] + "cachegroups/" + id).then(
             function(result) {
-                messageModel.setMessages(result.data.alerts, false);
-                return result;
+                return result.data;
             },
             function(err) {
                 messageModel.setMessages(err.data.alerts, false);