diff --git a/app.vue b/app.vue index a8c7190..afa34bb 100644 --- a/app.vue +++ b/app.vue @@ -11,7 +11,10 @@ import "~/assets/global.css"; const event = useRequestEvent(); const sessionStore = useSessionStore(); -await callOnce("fetch-session", async () => { +const eventsStore = useEventsStore(); +const nuxtApp = useNuxtApp(); +await callOnce("fetch-globals", async () => { await sessionStore.fetch(event); + await nuxtApp.runWithContext(eventsStore.fetchLastEventId); }) diff --git a/components/CardEvent.vue b/components/CardEvent.vue index cec96b9..0d90894 100644 --- a/components/CardEvent.vue +++ b/components/CardEvent.vue @@ -3,7 +3,10 @@ SPDX-License-Identifier: AGPL-3.0-or-later -->