Skip to content

Commit

Permalink
fix: Trash bin with fullday event can be opened again
Browse files Browse the repository at this point in the history
Fixes #2609

Signed-off-by: Jakob Linskeseder <[email protected]>
  • Loading branch information
jaylinski committed Feb 1, 2025
1 parent f86b092 commit 1324725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AppNavigation/Trashbin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ import MenuDown from 'vue-material-design-icons/MenuDown.vue'
import MenuUp from 'vue-material-design-icons/MenuUp.vue'
import Undo from 'vue-material-design-icons/Undo.vue'

import { toRaw } from 'vue'
import { mapGetters } from 'vuex'

export default {
Expand Down Expand Up @@ -207,7 +208,7 @@ export default {
}
let subline = vobject.calendar?.displayName || t('tasks', 'Unknown calendar')
if (vobject.isEvent) {
const event = vobject?.calendarComponent.getFirstComponent('VEVENT')
const event = toRaw(vobject?.calendarComponent.getFirstComponent('VEVENT'))
if (event?.startDate.jsDate && event?.isAllDay()) {
subline += ' · ' + moment(event.startDate.jsDate).format('LL')
} else if (event?.startDate.jsDate) {
Expand Down

0 comments on commit 1324725

Please sign in to comment.