Commit 924fb285 authored by NISUM's avatar NISUM

Modified Dashboard controller changes

parent 49a1ca8b
...@@ -241,9 +241,9 @@ myApp.controller("domainController", ...@@ -241,9 +241,9 @@ myApp.controller("domainController",
var allAccounts = myFactory.getAccounts(); var allAccounts = myFactory.getAccounts();
function getActiveAccounts(){ function getActiveAccounts(){
var activeAccounts = []; var activeAccounts = [];
for (var i in allAccounts.records){ for (var i in allAccounts){
if(allAccounts.records[i].status == "Active" || allAccounts.records[i].status == "Y"){ if(allAccounts[i].status == "Active" || allAccounts[i].status == "Y"){
activeAccounts.push(allAccounts.records[i]); activeAccounts.push(allAccounts[i]);
} }
} }
return activeAccounts; return activeAccounts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment