Fix crash when no emails received yet

This commit is contained in:
Girish Ramakrishnan
2022-09-11 14:00:40 +02:00
parent c5c7592618
commit 097cb8e87f

View File

@@ -702,7 +702,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
var u = $scope.diskUsage[m.name + '@' + m.domain]; // this is unset when no emails have been received yet
m.usage = (u && u.quotaValue * 1024) || 0;
m.limit = u.quotaLimit * 1024;
m.limit = (u && u.quotaLimit * 1024) || 0;
});
$scope.mailboxes.mailboxes = mailboxes;