summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-01-02 15:38:51 +0100
committerMarcus Lundblad <ml@update.uu.se>2021-01-04 22:48:07 +0100
commit4035d47d1c6559771c9a10513ee8190e4d979d20 (patch)
tree97cbc81941a29cac8c724f73448cf79be52555f7
parent4e7eb5d1ae6af5426cfc51d3f99dc313a7f5dbcb (diff)
downloadgnome-maps-4035d47d1c6559771c9a10513ee8190e4d979d20.tar.gz
placeBubble: Use place instance from the place storewip/mlundblad/fix-place-details-update
When populating place details use the place instance stored in the place store in the case when not retrieving from Overpass (e.g. when not stale).
-rw-r--r--src/placeBubble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/placeBubble.js b/src/placeBubble.js
index 5327c04f..ffdd8a6b 100644
--- a/src/placeBubble.js
+++ b/src/placeBubble.js
@@ -85,8 +85,8 @@ var PlaceBubble = GObject.registerClass({
if (Application.placeStore.isStale(this.place)) {
overpass.addInfo(this.place);
} else {
- let place = Application.placeStore.get(this.place);
- this._populate(place);
+ this._place = Application.placeStore.get(this.place);
+ this._populate(this.place);
}
} else if (this.place.store && !this.place.prefilled) {
overpass.addInfo(this.place);