From 6cddabba38ded1194e72acd375cd47d1f36579e7 Mon Sep 17 00:00:00 2001 From: "Chris.Watts90@outlook.com" Date: Wed, 8 Mar 2017 16:56:26 +0000 Subject: [PATCH] removed unnecessary code. #59 --- .../WindowsDataCenter/WindowsDataCenter/www/spa.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js index cad19ae..5112a99 100644 --- a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/www/spa.js @@ -330,9 +330,7 @@ self.getGroups = function () { var url = self.createRequestUrl(self.apiEndpoints.getGroups, null, false); return $.getJSON(url, function (res) { - res.forEach(function(item, index, arr) { - self.chosenUserDetails().Groups.push(item); - }); + self.chosenUserDetails().Groups = res; self.chosenUserDetails.valueHasMutated(); }).fail(function (resp, status, error) { console.log("error - getGroups");