Gerdofal / foundryvtt-cyberpunkred

GNU General Public License v3.0
20 stars 18 forks source link

[BUG] Actor.implementation.create returns promise that resolves to undefined #115

Closed Haxxer closed 2 years ago

Haxxer commented 2 years ago

Describe the bug When using the native Foundry function of Actor.implementation.create, it returns a Promise that resolves to undefined, rather than the actor document that was created.

To Reproduce Steps to reproduce the behavior:

  1. Open the console (F12)
  2. Run the following in the console:
    await Actor.implementation.create({ name: "New Actor", type: "character", img: "icons/svg/item-bag.svg" });
  3. It returns undefined

Expected behavior The promise is expected to return the actor document that was just created.

Setup:

Additional context I'm adding support for this system with the Item Piles module, but this is causing problems when creating the necessary data for the module to function.

Haxxer commented 2 years ago

Given the age of this repo, I probably got the wrong one. Closing.