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:
@@ -79,9 +79,9 @@
|
||||
>
|
||||
<start-time-icon
|
||||
:small="true"
|
||||
v-if="!mergedOptions.hideDate && event.options.showStartTime"
|
||||
v-if="!mergedOptions.hideDate && event.options?.showStartTime"
|
||||
:date="event.beginsOn.toString()"
|
||||
:timezone="event.options.timezone"
|
||||
:timezone="event.options?.timezone"
|
||||
/>
|
||||
</div>
|
||||
<span
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user