mailboxes: set size to 0 if missing in usage

This commit is contained in:
Girish Ramakrishnan
2025-12-01 14:45:44 +01:00
parent fda393b5e1
commit 8cd5345f8c
+1 -1
View File
@@ -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
});
}