Skip to content

Commit

Permalink
Fix map window fields empty states
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Dec 18, 2024
1 parent 5be4c1f commit 937cbfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/scss/geo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ html {
}

&.explore {
.map-controls {
.map-controls,
#content > .fields {
display: none !important;
}
}
Expand Down
2 changes: 2 additions & 0 deletions pages/src/geo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ export async function main() {
settingsSaveTimeout = setTimeout(() => common.settingsStore.set(null, settings), 100);
});
await initialize();
fieldRenderer.setData({});
fieldRenderer.render();
common.subscribe('watching-athlete-change', async athleteId => {
if (!inGame) {
await initialize();
Expand Down

0 comments on commit 937cbfc

Please sign in to comment.