fix(*): Address PR comments

This commit is contained in:
Josh Creek
2026-01-18 10:41:12 +00:00
parent 46351c9af0
commit 71df0de3df
4 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -82,6 +82,7 @@ export const PUT = async (event: RequestEvent) => {
...pokedex,
dexScopes: requestedDexScopes
});
pokedex.dexScopes = resolvedDexScopes;
const existingDexScopes = new Set(existingPokedex.dexScopes || []);
const nextDexScopes = new Set(resolvedDexScopes);
@@ -91,7 +92,6 @@ export const PUT = async (event: RequestEvent) => {
if (dexScopesChanged) {
await setPokedexDexScopes(event.locals.supabase, id, resolvedDexScopes);
pokedex.dexScopes = resolvedDexScopes;
}
// Recalculate pokedex_entries_mapping if configuration changed