Skip to content

JavaScript errors when live track ID changes on the current page #7

@tinuzz

Description

@tinuzz

Uncaught (in promise) TypeError: Cannot read property 'track' of undefined
at Object.do_draw (trackserver.js?ver=3.0-20170227:139)
at alltracksPromise.then.str (trackserver.js?ver=3.0-20170227:387)
do_draw @ trackserver.js?ver=3.0-20170227:139
alltracksPromise.then.str @ trackserver.js?ver=3.0-20170227:387

'mymapdata' has the track IDs even for live maps, and it is set only at page load. When the query for a live track (user=xyz) returns a track that is not in the 'mymapdata' object, which happens when the user started a new tracks while the page is open in the browser, these JavaScript error occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions