Skip to content
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]: Uncaught TypeError: a is undefined #125

Open
1 task
isven42 opened this issue Mar 3, 2024 · 2 comments
Open
1 task

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

isven42 opened this issue Mar 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@isven42
Copy link

isven42 commented Mar 3, 2024

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

  • I can confirm that disabling all of my other modules doesn't fix this issue.
@isven42 isven42 added the bug Something isn't working label Mar 3, 2024
@isven42
Copy link
Author

isven42 commented Mar 3, 2024

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
Copy link
Author

isven42 commented Mar 3, 2024

After applying this fix you will get to the issue #121 and can be fixed like described there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants