From 817c65d9b63295ed1003b72208ab02bcd1a9b8cc 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 --- server/pages/library/game/[id]/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/pages/library/game/[id]/index.vue b/server/pages/library/game/[id]/index.vue index 5fdb760b..6a16175b 100644 --- a/server/pages/library/game/[id]/index.vue +++ b/server/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