From 92ea88c7d13da1e0b4cb596e457a5d94f30d6e0d Mon Sep 17 00:00:00 2001 From: emallson Date: Sat, 25 Oct 2025 13:46:02 -0400 Subject: [PATCH] don't crash when the blizzard api dumps undefined talent data --- src/route/blizzard/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/route/blizzard/index.ts b/src/route/blizzard/index.ts index 2f46868..1ce5216 100644 --- a/src/route/blizzard/index.ts +++ b/src/route/blizzard/index.ts @@ -107,6 +107,7 @@ async function fetchCharacter( code: activeTree.talent_loadout_code, nodes: activeTree.selected_class_talents .concat(activeTree.selected_spec_talents) + .filter(Boolean) // sometimes the blizzard api does terrible, terrible things .map(({ id, rank }) => ({ id, rank })), } : undefined,