mailboxes: set size to 0 if missing in usage
This commit is contained in:
@@ -158,7 +158,7 @@ async function refreshUsage() {
|
||||
else if (error) return console.error(error);
|
||||
|
||||
mailboxes.value.forEach((m) => {
|
||||
if (usage[m.fullName]) m.usage = usage[m.fullName];
|
||||
m.usage = usage[m.fullName] ?? { diskSize: 0}; // can be missing from response if no email has been received by dovecot
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user