asacolips-projects / dungeonworld

Create campaigns in Foundry VTT using the Dungeon World RPG!
MIT License
8 stars 4 forks source link

can't add new equipment group to class #99

Closed asacolips closed 7 months ago

asacolips commented 2 years ago

In GitLab by @Graffini on Sep 11, 2022, 10:27

After creating a new "class" item, clicking "+ add new equipment group" does not do anything. There is an error in the console:

Uncaught (in promise) TypeError: update.system is undefined
_onClickClassControl /systems/dungeonworld/module/item/item-sheet.js:288

I briefly investigated it, in case it helps: In line 288, update.system.equipment is called. update does not have a system property, but it has an equipment property. Directly calling update.equipment solves the TypeError and renders the equipment-group in the class window. However, it also produces some modelValidation errors, and dragging items into the equipment group does not work. Also, the equipment group renders in every tab of the class window, so that's probably the wrong hierarchy or something.

asacolips commented 2 years ago

In GitLab by @Asacolips on Sep 11, 2022, 21:25

Resolved in 0532fe49 and will be included in 1.6.1