diff --git a/frontend/components/card/CardConnect.vue b/frontend/components/card/CardConnect.vue
index b790cb187..eb4308fe6 100644
--- a/frontend/components/card/CardConnect.vue
+++ b/frontend/components/card/CardConnect.vue
@@ -113,6 +113,7 @@
diff --git a/frontend/pages/groups/create.vue b/frontend/pages/groups/create.vue
index 3a04e2fdf..c485011a2 100644
--- a/frontend/pages/groups/create.vue
+++ b/frontend/pages/groups/create.vue
@@ -52,7 +52,7 @@
{{ $t("pages._global.description") }}*
{{ $t("pages._global.link") }}*
({
+ state: (): EventStore => ({
loading: false,
- // event
- id: "",
- name: "",
- tagline: "",
- createdBy: "",
- iconURL: "",
- type: "learn",
- offlineLocation: "",
- getInvolvedURL: "",
- socialLinks: [""],
- startTime: "",
-
- // event_organizations
- organizations: [],
-
- // event_text
- description: "",
- getInvolved: "",
+ event: {
+ id: "",
+ name: "",
+ tagline: "",
+ createdBy: "",
+ iconURL: "",
+ type: "learn",
+ offlineLocation: "",
+ getInvolvedURL: "",
+ socialLinks: [""],
+ startTime: "",
+
+ // event_organizations
+ organizations: [],
+
+ // event_text
+ description: "",
+ getInvolved: "",
+ },
+ events: [],
}),
actions: {
// MARK: Create
@@ -74,16 +82,16 @@ export const useEventStore = defineStore("event", {
// const resources = eventRes._value;
const texts = eventTextsRes._value.results[0];
- this.id = event.id;
- this.name = event.name;
- this.tagline = event.tagline;
- this.iconURL = event.iconURL;
- this.offlineLocation = event.offlineLocation;
- this.getInvolvedURL = event.getInvolvedURL;
- this.socialLinks = event.socialLinks;
+ this.event.id = event.id;
+ this.event.name = event.name;
+ this.event.tagline = event.tagline;
+ this.event.iconURL = event.iconURL;
+ this.event.offlineLocation = event.offlineLocation;
+ this.event.getInvolvedURL = event.getInvolvedURL;
+ this.event.socialLinks = event.socialLinks;
- this.description = texts.description;
- this.getInvolved = texts.getInvolved;
+ this.event.description = texts.description;
+ this.event.getInvolved = texts.getInvolved;
this.loading = false;
},
diff --git a/frontend/types/events/event.d.ts b/frontend/types/events/event.d.ts
index eb4424b28..5cec4c85a 100644
--- a/frontend/types/events/event.d.ts
+++ b/frontend/types/events/event.d.ts
@@ -37,8 +37,6 @@ export interface Event {
// support
// supportingOrgs?: Organization[];
// supportingUsers?: User[];
-
- loading: boolean;
}
// MARK: Bridge Tables
diff --git a/frontend/utils/testEntities.ts b/frontend/utils/testEntities.ts
index 5b0d27b10..3d805dfac 100644
--- a/frontend/utils/testEntities.ts
+++ b/frontend/utils/testEntities.ts
@@ -145,7 +145,6 @@ export const testClimateEvent: Event = {
// supportingUsers: [user, user],
// iconURL: "/images/an_image.svg",
socialLinks: ["climate_org@mastodon", "climate_org@email.com"],
- loading: false,
};
export const testTechEvent: Event = {
@@ -163,7 +162,6 @@ export const testTechEvent: Event = {
startTime: new Date().toLocaleDateString(),
// supportingUsers: [user, user, user],
socialLinks: [""],
- loading: false,
};
export const testResource: Resource = {