Merge pull request #2578 from nextcloud/bugfix/noid/fix_opening_events_from_search
Fix opening events from search
This commit is contained in:
commit
4fb4196f23
|
@ -625,6 +625,7 @@ export default {
|
||||||
const closeToDate = dateFactory()
|
const closeToDate = dateFactory()
|
||||||
// TODO: can we replace this by simply returning the new route since we are inside next()
|
// TODO: can we replace this by simply returning the new route since we are inside next()
|
||||||
// Probably not though, because it's async
|
// Probably not though, because it's async
|
||||||
|
await vm.loadingCalendars()
|
||||||
const recurrenceId = await vm.$store.dispatch('resolveClosestRecurrenceIdForCalendarObject', { objectId, closeToDate })
|
const recurrenceId = await vm.$store.dispatch('resolveClosestRecurrenceIdForCalendarObject', { objectId, closeToDate })
|
||||||
const params = Object.assign({}, vm.$route.params, { recurrenceId })
|
const params = Object.assign({}, vm.$route.params, { recurrenceId })
|
||||||
vm.$router.replace({ name: vm.$route.name, params })
|
vm.$router.replace({ name: vm.$route.name, params })
|
||||||
|
|
Loading…
Reference in New Issue