Skip to content

Commit 1c0b22e

Browse files
authored
Merge pull request #71 from WoWAnalyzer/push-vwowmtnrwurs
don't crash when the blizzard api dumps undefined talent data
2 parents 64a07d9 + 92ea88c commit 1c0b22e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/route/blizzard/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ async function fetchCharacter(
107107
code: activeTree.talent_loadout_code,
108108
nodes: activeTree.selected_class_talents
109109
.concat(activeTree.selected_spec_talents)
110+
.filter(Boolean) // sometimes the blizzard api does terrible, terrible things
110111
.map(({ id, rank }) => ({ id, rank })),
111112
}
112113
: undefined,

0 commit comments

Comments
 (0)