Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/EventModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ export default {
try {
this.generatingData = true

const { summary, description } = await generateEventData(this.envelope.databaseId)
const result = await generateEventData(this.envelope.databaseId)
if (!result) {
return
}
const { summary, description } = result
this.eventTitle = summary
this.description = description
} finally {
Expand Down
6 changes: 5 additions & 1 deletion src/components/ThreadEnvelope.vue
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,11 @@ export default {

// Fetch smart replies
if (this.enabledFreePrompt && this.message && !['trash', 'junk'].includes(this.mailbox.specialRole) && !this.showFollowUpHeader) {
this.smartReplies = await smartReply(this.envelope.databaseId)
try {
this.smartReplies = await smartReply(this.envelope.databaseId)
} catch (error) {
logger.error('Could not fetch smart replies', { error })
}
}
},

Expand Down
Loading