kandashi / Next-Up

Auto focus on new combatant
MIT License
12 stars 9 forks source link

Cannot set property 'visible' of undefined #110

Closed mkahvi closed 3 years ago

mkahvi commented 3 years ago

Describe the bug Cannot set property 'visible' of undefined
Not much else to tell about this

To Reproduce Unknown. Looks to be happening when turns are cycled?

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Uncaught (in promise) TypeError: Cannot set property 'visible' of undefined
    at Function.AddTurnMaker (nextUp.js:492)
    at handleCombatUpdate (nextUp.js:296)
    at Function._call (eval at <anonymous> (listeners.js:56), <anonymous>:4:14)
    at Function.callAll (foundry.js:153)
    at ClientDatabaseBackend.callback (foundry.js:8880)
    at foundry.js:8819
    at Array.map (<anonymous>)
    at ClientDatabaseBackend._handleUpdateDocuments (foundry.js:8819)
    at f.<anonymous> (foundry.js:8458)
    at f.r.emit (index.js:145)

Environment:

Additional context ...

kandashi commented 3 years ago

This means that one of your combatants didn't get the marker created. Are you using temporary combatants from CUB or anything like that?

A refresh should fix the issue as long as each combatant has a token

mkahvi commented 3 years ago

No temporary combatants. Refresh probably fixes it, but it keeps happening. Some of the combatants with the marker may have been deleted during combat, not sure, I wasn't the GM.

kandashi commented 3 years ago

I found the issue. Fix going out soon