mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Comment out group task fetching
This commit is contained in:
@@ -178,15 +178,15 @@ window.habitrpg = angular.module('habitrpg',
|
||||
$scope.group.challenges = response.data.data;
|
||||
});
|
||||
//@TODO: Add this back when group tasks go live
|
||||
return Tasks.getGroupTasks($scope.group._id);
|
||||
// Tasks.getGroupTasks($scope.group._id);
|
||||
// .then(function (response) {
|
||||
// var tasks = response.data.data;
|
||||
// tasks.forEach(function (element, index, array) {
|
||||
// if (!$scope.group[element.type + 's']) $scope.group[element.type + 's'] = [];
|
||||
// $scope.group[element.type + 's'].push(element);
|
||||
// })
|
||||
// });
|
||||
})
|
||||
.then(function (response) {
|
||||
var tasks = response.data.data;
|
||||
tasks.forEach(function (element, index, array) {
|
||||
if (!$scope.group[element.type + 's']) $scope.group[element.type + 's'] = [];
|
||||
$scope.group[element.type + 's'].push(element);
|
||||
})
|
||||
});
|
||||
}]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user