{{/if}}
diff --git a/app/components/places-sidebar.gjs b/app/components/places-sidebar.gjs
index f431928..6fd2397 100644
--- a/app/components/places-sidebar.gjs
+++ b/app/components/places-sidebar.gjs
@@ -50,23 +50,23 @@ export default class PlacesSidebar extends Component {
// Update selection to the new saved place object
// This updates the local UI state immediately without a route refresh
if (this.args.onUpdate) {
- // When deleting, we revert to a "fresh" object or just close.
- // Since we close the sidebar below, we might not strictly need to update local state,
- // but it's good practice.
- // Reconstruct the "original" place without ID/Geohash/CreatedAt
- const freshPlace = {
- ...place,
- id: undefined,
- geohash: undefined,
- createdAt: undefined
- };
- this.args.onUpdate(freshPlace);
+ // When deleting, we revert to a "fresh" object or just close.
+ // Since we close the sidebar below, we might not strictly need to update local state,
+ // but it's good practice.
+ // Reconstruct the "original" place without ID/Geohash/CreatedAt
+ const freshPlace = {
+ ...place,
+ id: undefined,
+ geohash: undefined,
+ createdAt: undefined,
+ };
+ this.args.onUpdate(freshPlace);
}
- // Also fire onSelect if it exists (for list view)
+ // Also fire onSelect if it exists (for list view)
if (this.args.onSelect) {
- // Similar logic for select if needed, but we usually close.
- this.args.onSelect(null);
+ // Similar logic for select if needed, but we usually close.
+ this.args.onSelect(null);
}
// Close sidebar after delete
@@ -81,7 +81,8 @@ export default class PlacesSidebar extends Component {
} else {
// It's a fresh POI -> Save it
const placeData = {
- title: place.osmTags.name || place.osmTags['name:en'] || 'Untitled Place',
+ title:
+ place.osmTags.name || place.osmTags['name:en'] || 'Untitled Place',
lat: place.lat,
lon: place.lon,
tags: [],
@@ -128,11 +129,11 @@ export default class PlacesSidebar extends Component {
{{else}}
Nearby Places
{{/if}}
-
+
diff --git a/app/services/osm.js b/app/services/osm.js
index 2f17fcb..dea2a8e 100644
--- a/app/services/osm.js
+++ b/app/services/osm.js
@@ -24,7 +24,7 @@ out center;
`.trim();
const url = `https://overpass.bke.ro/api/interpreter?data=${encodeURIComponent(
- // const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
+ // const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
query
)}`;
@@ -101,7 +101,7 @@ out center;
}
const url = `https://overpass.bke.ro/api/interpreter?data=${encodeURIComponent(
- // const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
+ // const url = `https://overpass-api.de/api/interpreter?data=${encodeURIComponent(
query
)}`;
const res = await this.fetchWithRetry(url);
diff --git a/app/styles/app.css b/app/styles/app.css
index 85ab00c..4c86934 100644
--- a/app/styles/app.css
+++ b/app/styles/app.css
@@ -129,7 +129,7 @@ body {
}
.btn-outline:hover {
- border: 1px solid #898989;
+ border: 1px solid #898989;
}
.btn-secondary {
diff --git a/app/templates/place.gjs b/app/templates/place.gjs
index d5a5b13..2cde9d6 100644
--- a/app/templates/place.gjs
+++ b/app/templates/place.gjs
@@ -38,8 +38,11 @@ export default class PlaceTemplate extends Component {
// 3. If not saved, check our local "optimistic" state (from handleUpdate)
// This handles the "unsaved" state immediately after deletion before any other sync
- if (this.localPlace && (this.localPlace.osmId === id || this.localPlace.id === id)) {
- return this.localPlace;
+ if (
+ this.localPlace &&
+ (this.localPlace.osmId === id || this.localPlace.id === id)
+ ) {
+ return this.localPlace;
}
// 4. Fallback to the route model (which might be the stale "saved" object from when the route loaded)
@@ -50,7 +53,7 @@ export default class PlaceTemplate extends Component {
...model,
id: undefined,
createdAt: undefined,
- geohash: undefined
+ geohash: undefined,
};
}