Skip to content

Commit

Permalink
fix: Console-log errors thrown when saving an event
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Jan 17, 2025
1 parent f605392 commit 30f9eb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mixins/EditorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ export default {
calendarId: this.calendarId,
})
} catch (error) {
logger.error(`Failed to save event: ${error}`)
logger.error(`Failed to save event: ${error}`, {

Check warning on line 481 in src/mixins/EditorMixin.js

View check run for this annotation

Codecov / codecov/patch

src/mixins/EditorMixin.js#L481

Added line #L481 was not covered by tests
error,
})
showError(t('calendar', 'Failed to save event'))
this.calendarObjectInstance.eventComponent.markDirty()
throw error
Expand Down

0 comments on commit 30f9eb7

Please sign in to comment.