arcanistzed / pdf-sheet

A system agnostic tool to export your Foundry character sheet to a PDF!
https://arcanist.me
MIT License
14 stars 58 forks source link

[Bug]: Uncaught TypeError: a is undefined #125

Open isven42 opened 8 months ago

isven42 commented 8 months ago

Expected Behavior

After clicking Export, give me the view to generate the pdf.

Current Behavior

After clicking export with the remastered mapping and the remastered pdf i get the issue: Uncaught TypeError: a is undefined

Steps to Reproduce

  1. Set mapping to current rotgrind remastered
  2. choose pdf template of rotgrind remastered
  3. click on export

Context

No response

Version

0.24.6

Foundry VTT Version

11.315

Operating System

Linux

Browser / App

Firefox

Game System

pf2e

Modules Disabled

isven42 commented 8 months ago

Fixed the bug with changing the following line 468 in the mapping file: FROM { "pdf": "languages", "foundry": actordata.system.traits.languages.value.concat([actordata.system.traits.languages.custom]).filter(function(a) {return a.trim() != ''}).join(", ") },

TO { "pdf": "languages", "foundry": actordata.system.traits.languages.value.concat([actordata.system.traits.languages.custom]).filter(function(a) {return a !== undefined ? a.trim() : ''}).join(", ") },

isven42 commented 8 months ago

After applying this fix you will get to the issue https://github.com/arcanistzed/pdf-sheet/pull/121 and can be fixed like described there.