mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
Sentry fix: handle scenario when account is invalid / folder not found
This commit is contained in:
parent
fdbffbf126
commit
a0fe657d70
1 changed files with 4 additions and 1 deletions
|
@ -408,7 +408,10 @@ class CategoryMailboxPerspective extends MailboxPerspective {
|
|||
return this._categories.some(cat => {
|
||||
const representedFolder =
|
||||
cat instanceof Folder ? cat : CategoryStore.getAllMailCategory(cat.accountId);
|
||||
return FolderSyncProgressStore.isSyncingAccount(cat.accountId, representedFolder.path);
|
||||
return (
|
||||
representedFolder &&
|
||||
FolderSyncProgressStore.isSyncingAccount(cat.accountId, representedFolder.path)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue