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

Vehicle messages fail to update after vehicle disappears #148

@kochman

Description

@kochman

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions