diff --git a/PokemonTabletopAdventures_v3/PTA3.html b/PokemonTabletopAdventures_v3/PTA3.html index 3333c9dda6..270a165aa9 100644 --- a/PokemonTabletopAdventures_v3/PTA3.html +++ b/PokemonTabletopAdventures_v3/PTA3.html @@ -2869,7 +2869,7 @@ }); function includeOnlyKeysInArray(sourceObject, filterArray) { - return Object.fromEntries(Object.entries(sourceObject).filter(([attr, value]) => filterArray.includes(attr))); + return _.pick(sourceObject, ...filterArray); } //This relies on elements in the object being in the correct order, which seems to be true always?