Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions frontend/src/components/activity/ScheduleEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ export default {
await this.scheduleEntry.activity()._meta.load // wait if activity is being loaded as part of a collection
this.loading = false

// to avoid stale data, trigger reload (which includes embedded contentNode data). However, don't await in order to render early with cached data.
this.scheduleEntry.activity().$reload()
// no refresh of activity here because the requireActivityScheduleEntry guard already does a refresh
},

methods: {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/helpers/scheduleEntryRouteChange.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default async function scheduleEntryRouteChange(activity, to, from, next)
to.params.scheduleEntryId !== from.params.scheduleEntryId ||
to.params.activityId !== from.params.activityId
) {
apiStore.get().activities({ id: to.params.activityId }).$reload()
// activity reload doesn't need to be awaited, but for scheduleEntry we want to
// ensure it exists and otherwise reroute
return await apiStore
.get()
.scheduleEntries({ id: to.params.scheduleEntryId })
Expand Down
Loading