Merge pull request #2578 from nextcloud/bugfix/noid/fix_opening_events_from_search

Fix opening events from search
This commit is contained in:
Georg Ehrke 2020-09-11 15:43:52 +02:00 committed by GitHub
commit 4fb4196f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 })