diff --git a/components/ProjectCardCompact.vue b/components/ProjectCardCompact.vue index eeb5550..7a1286d 100644 --- a/components/ProjectCardCompact.vue +++ b/components/ProjectCardCompact.vue @@ -3,14 +3,17 @@ import { Genre, genreToString, getTagColor } from "~/model/genre"; import { Area, placeToString } from "~/model/area"; const props = defineProps<{ - eventData: { - id: number; - e_name: string; - e_genre: Genre; - o_name: string; - area: Area; - p_name: string; - }; + eventData: + | { + id: number; + e_name: string; + e_genre: Genre; + o_name: string; + area: Area; + p_name: string; + } + | null + | undefined; }>(); const showNoImage = function (e: any) { e.target.src = @@ -27,7 +30,7 @@ const eventTagStyle = (genre: Genre) => {