From ef88dd1da589ddfc26a422ef949975dcbcd0981d Mon Sep 17 00:00:00 2001 From: Francesco Grazioso Date: Sat, 4 May 2024 18:37:53 +0200 Subject: [PATCH] minor fixes --- frontend/src/router/index.ts | 2 +- frontend/src/views/Details.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index ed7257c..fbbbafb 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -19,7 +19,7 @@ const router = createRouter({ try { item = JSON.parse(route.params.item); } catch (error) { - item = {}; // or any default value you want to set + item = {}; // default value } return { item: item, imageUrl: route.params.imageUrl }; }, diff --git a/frontend/src/views/Details.vue b/frontend/src/views/Details.vue index d146686..083b775 100644 --- a/frontend/src/views/Details.vue +++ b/frontend/src/views/Details.vue @@ -24,6 +24,7 @@ onMounted(async () => { while (true) { const {value, done} = await reader.read(); if (done) { + window.scrollTo(0, 0) break; } if (item.type === 'TV_ANIME') { @@ -44,7 +45,6 @@ onMounted(async () => { } } } - })