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

Error message about missing _id when updating an object. #1729

Open
obrenckle opened this issue Nov 13, 2024 · 0 comments
Open

Error message about missing _id when updating an object. #1729

obrenckle opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@obrenckle
Copy link
Contributor

Describe the bug
An error message is written to the console when adding a mod to an attached weapon attachment.
The mod is still created and nothing seems wrong with it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to an imported weapon (e.g. Heavy Blaster Pistol)
  2. Open Item Attachment
  3. Go to Add Mod tab
  4. Add a new mod
  5. Check Console

Expected behavior
No error message

Error message

Uncaught (in promise) Error: You must provide an _id for every object in the update data Array.
    activateListeners /starwarsffg/modules/items/item-sheet-ffg.js:786

modules/items/item-sheet-ffg.js:786

await this.object.update(
{
  system: {
    [itemType]: this.object.system[itemType],
  }
}

Desktop (please complete the following information):

  • Foundry Version: [e.g. v12.331
  • System Version: 1.903
  • Hosted on Forge: No
@obrenckle obrenckle added the bug Something isn't working label Nov 13, 2024
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

1 participant