Sentry fix: Crash when popping out a draft before it’s loaded

This commit is contained in:
Ben Gotow 2019-06-16 13:51:53 -05:00
parent 31a9f7e257
commit 7db9258f5a

View file

@ -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();