generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot read properties of undefined (reading 'map') #17
Comments
@p4535992 what does this print? game.actors.forEach(a=>a.items.filter(i=>i.hasAttack && i.type != 'consumable' && !('parts' in i.system.damage)).forEach(i=>console.log(i.name))) |
I'll put a json actor as example: |
I should specify a max dnd5e version as I haven't moved on to 4 yet. In the meantime I'll shoot out a patch. |
A ok actually I had started with a new world and the latest version of dnd5e, I didn't think about that thank you . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details
Core Version: 12.331
System: dnd5e 4.0.4 (Atropos)
Modules:
forien-copy-environment v2.2.2 (Blair McMillan, Forien)
lib-wrapper 1.13.2.0 (Rui Pinheiro)
oronder 0.3.45 (Tuna)
permission_viewer 12.3 (Matheus Clemente)
tidy5e-sheet 6.2.0 (kgar, sednec#3813, p4535992)
Usage
when i click the "Manually Sync all Actors" i got this error:
can you add a undefined check for this ?
The text was updated successfully, but these errors were encountered: