From f48045c35dae70e547e95e20cb8b0d2fc4d9e0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 30 Jun 2026 19:28:01 +0200 Subject: [PATCH] Fix flaky test by adding safe guard --- app/components/map.gjs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/map.gjs b/app/components/map.gjs index d320411..27fa73b 100644 --- a/app/components/map.gjs +++ b/app/components/map.gjs @@ -1088,6 +1088,7 @@ export default class MapComponent extends Component { const bbox = { minLat, minLon, maxLat, maxLon }; this.mapUi.updateBounds(bbox); await this.storage.loadPlacesInBounds(bbox); + if (this.isDestroying || this.isDestroyed) return; this.nostrData.loadPlacesInBounds(bbox); this.loadBookmarks(this.storage.placesInView);