Skip to content

Commit

Permalink
fix(myaccount): no DOM loading
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Jan 4, 2025
1 parent 945c167 commit 8aa6b92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/my-account/my-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class MyAccount {
var localRoutes = JSON.parse(resp.value);
console.log(localRoutes);
this.routes = this.routes.concat(localRoutes.filter( route => !route.type));
this.__updateAccountRoutesContainerDOMElement(this.routes);
this.#updateSources();
}
});
Expand All @@ -102,6 +103,7 @@ class MyAccount {
if (resp.value) {
var localLandmarks = JSON.parse(resp.value);
this.landmarks = this.landmarks.concat(localLandmarks);
this.__updateAccountLandmarksContainerDOMElement(this.landmarks);
this.#updateSources();
}
});
Expand All @@ -111,6 +113,7 @@ class MyAccount {
if (resp.value) {
var localCompareLandmarks = JSON.parse(resp.value);
this.compareLandmarks = this.compareLandmarks.concat(localCompareLandmarks);
this.__updateAccountCompareLandmarksContainerDOMElement(this.compareLandmarks);
this.#updateSources();
}
});
Expand Down Expand Up @@ -855,6 +858,7 @@ class MyAccount {
try {
let result;
if (value === "json") {
console.log(JSON.stringify(this.#routeToGeojson(route)));
result = await Filesystem.writeFile({
path: `${route.name.replace(/[&/\\#,+()$~%.'":*?<>{}]/g, "_")}.json`,
data: JSON.stringify(this.#routeToGeojson(route)),
Expand Down

0 comments on commit 8aa6b92

Please sign in to comment.