Skip to content

ArtSelect is not defined #220

@ottoloot

Description

@ottoloot

Describe the bug
The popup that says "Apply the same art to token?" results in an error, even though it does appear to work. I get an error and the prompt won't disappear until I close it, but it does seem to set the same artwork.

Screenshots

Image

FoundryVTT 351
PF2E 7.11.2

My Fix:

I changed
const n=Object.values(ui.windows).filter((e=>e instanceof ArtSelect));

to
const n=Object.values(ui.windows).filter(e=>e?.constructor?.name==="ArtSelect");

in the token-variants.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions