KayelGee / token-attacher

MIT License
12 stars 18 forks source link

Attachment ui can be open for a deleted token. When the user tries to attach something(also via drop on canvas) this throws an error. #61

Closed KayelGee closed 2 years ago

KayelGee commented 2 years ago

Copy from discord: These error probably came from the fact that you had the attachment ui open for a token that doesn't exist. When you have the attachment ui open for a token and drop something on the canvas it will be immediately attached to the base token. In this case the token didn't exist so it ran into an error.

I'll add a check so that error doesn't happen anymore and I think I'll close the ui if the token doesn't exists when you try to attach anything just to prevent that mistake in the future.