Skip to content

Commit

Permalink
Final bug bix
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Sep 9, 2014
1 parent acc4e4e commit da4fc7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/recordings/recentRecordings/recentRecordings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ angular.module("bawApp.recordings.recentRecordings", [])
"moment",
"conf.paths",
function RecentRecordingsCtrl($scope, $location, AudioRecording, Site, moment, paths) {
$scope.recentRecordings = [];
$scope.recentRecordings = [null];

function audioRecordingsFormat(response) {
$scope.recentRecordings = response.data.data;
Expand Down Expand Up @@ -44,6 +44,7 @@ angular.module("bawApp.recordings.recentRecordings", [])
.then(audioRecordingsFormat)
.then(sitesFormat)
.catch(function error(reason) {
$scope.recentRecordings = [];
console.error(reason);
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/services/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
siteIds = _.uniq(siteIds);
var query = QueryBuilder.create(function(q) {
return q.in("id", siteIds)
.project({include: ["id", "name", "projectIds"]});
.project({include: ["id", "name"]});
});
return $http.post(url, query.toJSON());
};
Expand Down

0 comments on commit da4fc7b

Please sign in to comment.