mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
Sentry fix: Crash when popping out a draft before it’s loaded
This commit is contained in:
parent
31a9f7e257
commit
7db9258f5a
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ class DraftStore extends MailspringStore {
|
|||
}
|
||||
|
||||
const session = await this.sessionForClientId(headerMessageId);
|
||||
await session.prepare();
|
||||
await session.changes.commit();
|
||||
const draftJSON = session.draft().toJSON();
|
||||
|
||||
|
|
Loading…
Reference in a new issue