From c052511ff333862c3711c1f55f7441381769a7e7 Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sat, 15 Mar 2025 09:54:20 +1030 Subject: [PATCH] fix(library): Use $dropFetch util --- pages/library/game/[id]/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/library/game/[id]/index.vue b/pages/library/game/[id]/index.vue index 5fdb760..6a16175 100644 --- a/pages/library/game/[id]/index.vue +++ b/pages/library/game/[id]/index.vue @@ -169,12 +169,12 @@ import type { Game } from "@prisma/client"; const route = useRoute(); const id = route.params.id.toString(); -const { data: rawGame } = await useFetch(`/api/v1/games/${id}`); +const rawGame = await $dropFetch(`/api/v1/games/${id}`); const game = computed(() => { - if (!rawGame.value) { + if (!rawGame) { throw createError({ statusCode: 404, message: 'Game not found' }); } - return rawGame.value; + return rawGame; }); // Convert markdown to HTML