Skip to content

Commit ec0e6c0

Browse files
committed
fix: workout markers not loading on first render
1 parent 830690e commit ec0e6c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

public/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class App {
8989
#latestMarker;
9090

9191
constructor() {
92+
this._loadData();
93+
9294
this._updateHistory();
9395
this._loadMap.bind(this)();
9496
this._setInitialPopover();
@@ -98,7 +100,6 @@ class App {
98100
inputType.addEventListener('change', this._toggleElevationField);
99101
containerWorkouts.addEventListener('click', this._moveToPopup.bind(this));
100102

101-
this._loadData();
102103
}
103104

104105
_updateHistory() {

0 commit comments

Comments
 (0)