Skip to content

Commit

Permalink
web: Fix SSR error
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Jan 20, 2024
1 parent e9e3b5d commit d825db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion web/components/event-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<media-img-icon v-bind="data"></media-img-icon>
</template>

<template v-slot:preview>
<template v-if="!nopreview" v-slot:preview>
<slot name="preview">
<map-img
v-if="eventId != undefined && map != undefined"
Expand Down Expand Up @@ -70,6 +70,9 @@ export default defineComponent({
nobackground: {
type: Boolean
},
nopreview: {
type: Boolean
},
},
setup(props) {
const $config = useConfig()
Expand Down
2 changes: 1 addition & 1 deletion web/components/event-picture-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
:link="mapPath"
:event-id="eventId"
nobackground
nopreview
>
<template
v-slot:infobar
v-if="active"
>
<p class="text-right">{{ $t('state.event-active') }}</p>
</template>
<template v-slot:preview><template></template></template>
<template v-slot:content>
<div class="pt-4 h-full flex flex-col justify-center">
<map-img
Expand Down

0 comments on commit d825db4

Please sign in to comment.