Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Vehicle messages fail to update after vehicle disappears #148

Open
kochman opened this issue Mar 31, 2018 · 0 comments
Open

Vehicle messages fail to update after vehicle disappears #148

kochman opened this issue Mar 31, 2018 · 0 comments

Comments

@kochman
Copy link
Contributor

kochman commented Mar 31, 2018

If a vehicle shows up on the map and then is no longer returned by /updates (due to inactivity), all vehicle messages will then fail to update after that point.

According to the console, it was not able to access the data attribute on this line:

const update = v.ShuttlesArray[key].data;

I think this is because that value gets set to null here:

this.ShuttlesArray[key] = null;

A possible fix could be to remove the vehicle's whole key/value from this.ShuttlesArray instead of setting its value to null when it disappears.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant