From a4faaa406b2e3ede05010419c607ef5efba21056 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 6 Jul 2025 17:54:13 +0300 Subject: [PATCH] fix(views/geomap): proper refresh --- apps/client/src/widgets/view_widgets/geo_view/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/client/src/widgets/view_widgets/geo_view/index.ts b/apps/client/src/widgets/view_widgets/geo_view/index.ts index 449317e17..9af2c39c8 100644 --- a/apps/client/src/widgets/view_widgets/geo_view/index.ts +++ b/apps/client/src/widgets/view_widgets/geo_view/index.ts @@ -216,13 +216,8 @@ export default class GeoView extends ViewMode { // Add the new markers. this.currentMarkerData = {}; - await froca.getNotes(this.args.noteIds); - for (const noteId of this.args.noteIds) { - const childNote = froca.getNoteFromCache(noteId); - if (!childNote) { - continue; - } - + const notes = await this.parentNote.getChildNotes(); + for (const childNote of notes) { if (childNote.mime === "application/gpx+xml") { const track = await processNoteWithGpxTrack(this.map, childNote); this.currentTrackData[childNote.noteId] = track;