diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ca60b60..7ef7dec 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -51,8 +51,7 @@ const optionsOpen = ref(false); onMounted(async () => { games.value = await fetchGames(); tags.value = [...new Set(games.value.flatMap(game => game.Genres.split(",")))]; - selectedTag.value = tags.value[0]; - selectedGame.value = store.filteredGames[0]; + store.selectTag(tags.value[0]) }); KeyboardManager.switchContext("sidebar") diff --git a/frontend/src/components/GamePreview.vue b/frontend/src/components/GamePreview.vue index 7afb842..bb1205f 100644 --- a/frontend/src/components/GamePreview.vue +++ b/frontend/src/components/GamePreview.vue @@ -1,13 +1,13 @@