Merge pull request #244 from whiteout-io/dev/WO-805

[WO-805] Do not attempt to write to undefined when folders are not yet loaded
master
Tankred Hase 9 years ago
commit b62c551b8b

@ -100,6 +100,12 @@ var NavigationCtrl = function($scope, $location, $q, account, email, outbox, not
var ob = _.findWhere($scope.account.folders, {
type: config.outboxMailboxType
});
if (!ob) {
// the outbox folder has not been initialized yet
return;
}
ob.count = count;
return $q(function(resolve) {

Loading…
Cancel
Save