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:
Open the console (F12)
Run the following in the console:
await Actor.implementation.create({ name: "New Actor", type: "character", img: "icons/svg/item-bag.svg" });
It returns undefined
Expected behavior
The promise is expected to return the actor document that was just created.
Setup:
Foundry Version: 9.269
System Version: Cyberpunk RED - CORE 0.81.4
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.
Describe the bug When using the native Foundry function of
Actor.implementation.create
, it returns aPromise
that resolves toundefined
, rather than the actor document that was created.To Reproduce Steps to reproduce the behavior:
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.