Fix type errors

This commit is contained in:
2025-10-16 20:44:52 +02:00
parent c80fc61539
commit baca5415c3
12 changed files with 56 additions and 43 deletions
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { parseError, sluggy } from '#imports';
import { compressImage, createImageURL } from '#shared/utils/image';
import ClickableImage from '~/components/ClickableImage.vue';
import MultilineString from '~/components/MultilineString.vue';
@@ -17,6 +18,7 @@ const { user } = useUserSession();
const { huntSlug, questSlug } = app.$slugData;
const { t, d, locale } = useI18n();
const localePath = useLocalePath();
const { tKey, hasKey, tSluggy } = useI18nKey();
const titleStore = useTitleStore();
@@ -176,7 +178,7 @@ async function submit() {
<VaButton
icon="arrow_back"
:to="
$localePath(
localePath(
`/hunt/${data ? tSluggy(data.hunt).value : sluggy(huntSlug!)}`
)
"
@@ -196,7 +198,7 @@ async function submit() {
v-if="user && user.role === 'ADMIN'"
color="danger"
:to="
$localePath(
localePath(
`/hunt/${data?.hunt ? tSluggy(data.hunt).value : sluggy(huntSlug!)}/${data ? tSluggy(data).value : sluggy(questSlug!)}}/admin`
)
"