Fix opening events from search

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-09-11 13:22:43 +02:00
parent 9bbfe98b47
commit 232736d8da
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 1 additions and 0 deletions

View File

@ -625,6 +625,7 @@ export default {
const closeToDate = dateFactory()
// TODO: can we replace this by simply returning the new route since we are inside next()
// Probably not though, because it's async
await vm.loadingCalendars()
const recurrenceId = await vm.$store.dispatch('resolveClosestRecurrenceIdForCalendarObject', { objectId, closeToDate })
const params = Object.assign({}, vm.$route.params, { recurrenceId })
vm.$router.replace({ name: vm.$route.name, params })