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

When deleting a token from the canvas, "Cannot read properties of null (reading 'worldTransform')" #111

Open
thatlonelybugbear opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@thatlonelybugbear
Copy link

thatlonelybugbear commented Aug 7, 2024

Foundry v12.330
Dnd5e v3.3.1
Token tooltips v4.1.2 (only active module)

When deleting a token from canvas, the following error is logged.

Uncaught TypeError: Cannot read properties of null (reading 'worldTransform') DisplayObject.ts:803 
    at get worldTransform (DisplayObject.ts:803:31)
    at #fixPosition (module.js:209:6353)
    at #onHover (module.js:209:6189)
    at module.js:209:3900
    at Object.<anonymous> (module.js:209:2907)
    at foundry-esm.js:2691:18

Points to

 #fixPosition(a) {
        if (ShowOnLeft.get()) {
              const b = window.innerWidth - Math.ceil(a.worldTransform.tx - 8);
@thatlonelybugbear thatlonelybugbear added the bug Something isn't working label Aug 7, 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

2 participants