Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

[BUG] Cannot read property 'id' of undefined in Function.popRider #7

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

Comments

@Merudo
Copy link

Merudo commented Aug 7, 2020

Describe the bug
Copy-pasting / deleting tokens that have been paired by MountUp can cause crashes and errors.

Specifically, it can create the following error:

mountup.js:17 Uncaught (in promise) TypeError: Cannot read property 'id' of undefined

The problematic lines:

if (riderToken) {
    riderToken.zIndex = mountToken.zIndex + 10;
}

if (this.isaMount(riderToken.id)) {
    this.popRider(riderToken.id, callcount += 1);
 }

code can be found here.

Environment Details
Foundry VTT Version: 0.6.5
Mount Up! Version: 3.0.1

@Merudo Merudo added the bug Something isn't working label Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants