anvil-vtt / FateX

FateX is the extended Fate game system for FoundryVTT.
MIT License
22 stars 15 forks source link

broken descriptions in foundry v12 #124

Open Licenser opened 2 months ago

Licenser commented 2 months ago

Describe the bug

All long descriptions are only showing as [object Promise] in v12 Foundry

To Reproduce Steps to reproduce the behavior:

  1. create a character
  2. Click on 'Extras' (or stunts)
  3. Go to edit mode
  4. See the Description be reduced to [object Promise]
  5. edit the description
  6. save the description
  7. See the Description be reduced to [object Promise] again

Expected behavior Description texts are correctly displayed and can be edited

Screenshots or Videos image image image

Desktop (please complete the following information):

Additional context

The error console shows no errors just the following warning:

Error: You are accessing globalThis.duplicate which must now be accessed via foundry.utils.duplicate
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
    at Object.logCompatibilityWarning (foundry-esm.js:4598:19)
    at get (foundry-esm.js:65057:25)
    at CharacterSheet.getData (system.js:2:106817)
    at CharacterSheet._render (foundry.js:5814:29)
    at CharacterSheet._render (foundry.js:6548:17)
    at CharacterSheet._render (foundry.js:7134:17)
    at CharacterSheet._render (system.js:2:108834)
    at CharacterSheet.render (foundry.js:5769:10)
    at FateActor.render (foundry.js:10745:13)
    at FateActor.render (system.js:2:154407)
    at FateActor._onUpdateDescendantDocuments (foundry.js:11113:12)
    at FateActor._onUpdateDescendantDocuments (foundry.js:15962:11)
    at FateActor._dispatchDescendantDocumentEvents (foundry.js:11033:10)
    at #handleUpdateDocuments (foundry-esm.js:55792:15)
    at async FateItem.updateDocuments (foundry-esm.js:11384:23)
    at async FateItem.update (foundry-esm.js:11494:23)
    at async StuntSheet._onSubmit (foundry.js:6641:7)
    at async StuntSheet.saveEditor (foundry.js:6785:5)
RinVindor commented 2 months ago

Also seeing the same bug. Hopefully the system can be updated for v12 as myself and our group want to use the new features.

PatrickBauer commented 2 months ago

Thank you, I'll have a look at this, but can't make any promises right now 🙏