From 94a6dedf87bc57972abaa35c1b29f48bbf425ffa Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Tue, 2 Jul 2024 02:12:47 +0200 Subject: [PATCH] Apply event store to further components to fix TS errors --- frontend/components/card/about/CardAboutEvent.vue | 6 ++++-- frontend/components/header/HeaderAppPage.vue | 7 +++++-- .../components/modal/edit/about/ModalEditAboutEvent.vue | 6 ++++-- frontend/utils/testEntities.ts | 2 -- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/frontend/components/card/about/CardAboutEvent.vue b/frontend/components/card/about/CardAboutEvent.vue index c2d1efb93..bed36a18e 100644 --- a/frontend/components/card/about/CardAboutEvent.vue +++ b/frontend/components/card/about/CardAboutEvent.vue @@ -64,8 +64,10 @@ import CardAbout from "./CardAbout.vue"; const idParam = useRoute().params.id; const id = typeof idParam === "string" ? idParam : undefined; -const event = useEventStore(); -await event.fetchByID(id); +const eventStore = useEventStore(); +await eventStore.fetchByID(id); + +const { event } = eventStore; const description = ref(); const descriptionExpandable = ref(false); diff --git a/frontend/components/header/HeaderAppPage.vue b/frontend/components/header/HeaderAppPage.vue index e10d58893..99dd97b9e 100644 --- a/frontend/components/header/HeaderAppPage.vue +++ b/frontend/components/header/HeaderAppPage.vue @@ -75,6 +75,7 @@