Skip to content

Commit

Permalink
fix: Fix bug nextcloud#4092
Browse files Browse the repository at this point in the history
  • Loading branch information
rita-gama committed Mar 30, 2023
1 parent 8e78ea3 commit 8f4d1fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mixins/EditorMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,12 @@ export default {
}

try {
await this.save()
// Don't save a new event if user clicks in an existing one
if (from.name !== 'EditPopoverView' && from.name !== 'EditSideBarView') {
if (to.name !== 'EditPopoverView' && to.name !== 'EditSideBarView') {
await this.save()
}
}
next()
} catch (error) {
console.debug(error)
Expand Down

0 comments on commit 8f4d1fe

Please sign in to comment.