From 353baa626758cc41da36258d755ac3bb6441d293 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 20 Jan 2026 22:18:55 +0100 Subject: [PATCH] Bufixes, prefetching root page --- frontend/components/ChampionSelector.vue | 5 +++++ frontend/components/nav/BottomBar.vue | 12 ++++++++---- frontend/nuxt.config.ts | 4 ++-- frontend/pages/champion/[alias].vue | 9 ++++++++- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/frontend/components/ChampionSelector.vue b/frontend/components/ChampionSelector.vue index 1365dd4..f7b0de0 100644 --- a/frontend/components/ChampionSelector.vue +++ b/frontend/components/ChampionSelector.vue @@ -82,6 +82,11 @@ watch(searchText, (newTerm) => { debouncedSearch(newTerm); }); +// Watch for changes in champions data and update filtered champions +watch(champions, (newChampions) => { + filteredChampions.value = [...newChampions]; +}, { immediate: true }); + // Navigation async function navigateToChampion(championAlias: string): Promise { try { diff --git a/frontend/components/nav/BottomBar.vue b/frontend/components/nav/BottomBar.vue index 8b0816a..170a737 100644 --- a/frontend/components/nav/BottomBar.vue +++ b/frontend/components/nav/BottomBar.vue @@ -30,9 +30,13 @@ if(route.path.startsWith("/tierlist/")) {