From b49b3e83d0982881b1c27cf627eec3f9b8d9446d Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Thu, 20 Mar 2025 17:47:19 +0100 Subject: [PATCH] try to fix error when abilitiesMap undefined --- src/10th/Roster.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/10th/Roster.jsx b/src/10th/Roster.jsx index 9af97c1..8b22454 100644 --- a/src/10th/Roster.jsx +++ b/src/10th/Roster.jsx @@ -562,7 +562,7 @@ const Unit = ({ }; const checkAbilitiesForInvul = (abilitiesMap, name) => { - const abilities = [...abilitiesMap.keys()]; + const abilities = [...(abilitiesMap?.keys?.() || [])]; for (let ability of abilities) { if (ability.includes(":")) { // if : then only match if the name is the same