Fix mistakes made in commit a4a6b77

This commit is contained in:
Niels Lyngsø
2020-01-22 08:36:52 +01:00
parent 3fa969eef2
commit 8030901184

View File

@@ -162,18 +162,19 @@
newGroup.groupOrder = item.groupOrder;
}
if(item.hidden === false){
newGroup.tours.push(item);
groupedTours.push(newGroup);
if(item.hidden === false){
newGroup.tours.push(item);
groupedTours.push(newGroup);
}
}
}
}
});
deferred.resolve(groupedTours);
});
return deferred.promise;
});
}
/**
* @ngdoc method