Durtur / Dungeoneer

A virtual tabletop designed for 5e D&D, includes a map tool with dynamic lighting, initiative tracker, combat tracker and homebrew management.
GNU Affero General Public License v3.0
169 stars 16 forks source link

Add row template for new rows #72

Closed 0x07C0 closed 1 year ago

0x07C0 commented 1 year ago

Using template instead of expecting to see a row on creating a new one will fix a bug with party being unable to create new rows after deleting all members.

Console output on attempting to create new row with an empty party list without a template:

Uncaught TypeError: Cannot read properties of undefined (reading 'querySelector')
    at Object.addRow (app/js/partyModal.js:12)
    at HTMLButtonElement.onclick (index.html:712)