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

Foundry crashing when trying to setFlag on items in an imported folder. #55

Open
thatlonelybugbear opened this issue Mar 13, 2023 · 0 comments

Comments

@thatlonelybugbear
Copy link

image

  1. Import all content from a compendium.
  2. Executing something like
for (let i of game.folders.getName("name of folder").contents) {
    if (!i.flags["scope"]?.sourceId) await i.setFlag("scope","key","value")
}

Hundreds of thousands such callbacks are being registered for each item that is getting updated.

Without Compendium Browser module active, no such issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant