From afe8416b73ee4a6bbf6f0d8b2b941253422b8009 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 12 Sep 2023 19:35:20 +0200 Subject: [PATCH] Fix to the Fix --- src/routes/graphs/+layout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/graphs/+layout.ts b/src/routes/graphs/+layout.ts index 9bb8bcf..0541d0b 100644 --- a/src/routes/graphs/+layout.ts +++ b/src/routes/graphs/+layout.ts @@ -44,7 +44,7 @@ export const load: LayoutLoad = async ({ fetch }) => { if (typeof gameGroupSelections[gameSelection] === 'undefined') { // Default to all available groups - gameGroupSelections[gameSelection] = { gameId: gameSelection, selectedGroups: Object.fromEntries(Object.values(Object.values(chellarisData.games)[gameSelection].groups).map((group) => group.id).entries()) }; + gameGroupSelections[gameSelection] = { gameId: gameSelection, selectedGroups: Object.fromEntries(Object.values(chellarisData.games[gameSelection].groups).map((group) => group.id).entries()) }; // Set Local Storage to default Values if not previously defined localStorage.setItem('gameGroupSelection', JSON.stringify(gameGroupSelections)); @@ -73,7 +73,7 @@ export const load: LayoutLoad = async ({ fetch }) => { if (typeof gameGroupSelections[gameSelection] === 'undefined') { // Default to all available groups - gameGroupSelections[gameSelection] = { gameId: gameSelection, selectedGroups: Object.fromEntries(Object.values(Object.values(chellarisData.games)[gameSelection].groups).map((group) => group.id).entries()) }; + gameGroupSelections[gameSelection] = { gameId: gameSelection, selectedGroups: Object.fromEntries(Object.values(chellarisData.games[gameSelection].groups).map((group) => group.id).entries()) }; } SelectedGameGroupsStore.set(gameGroupSelections);