fix(admin): Restore visibility of the last published event

- Don't expect event.options to be always here in EventCard
- Add event.options in Dashboard graphql query

Solves #1663
This commit is contained in:
Massedil
2025-02-07 15:34:27 +01:00
parent fbcca23057
commit e4cf73b9a7
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import gql from "graphql-tag";
import { ACTOR_FRAGMENT } from "./actor";
import { EVENT_OPTIONS_FRAGMENT } from "./event_options";
export const DASHBOARD = gql`
query Dashboard {
@@ -9,6 +10,9 @@ export const DASHBOARD = gql`
uuid
title
beginsOn
options {
...EventOptions
}
picture {
id
alt
@@ -35,6 +39,7 @@ export const DASHBOARD = gql`
}
}
${ACTOR_FRAGMENT}
${EVENT_OPTIONS_FRAGMENT}
`;
export const RELAY_FRAGMENT = gql`