mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
fix(views/geomap): proper refresh
This commit is contained in:
@@ -216,13 +216,8 @@ export default class GeoView extends ViewMode<MapData> {
|
|||||||
|
|
||||||
// Add the new markers.
|
// Add the new markers.
|
||||||
this.currentMarkerData = {};
|
this.currentMarkerData = {};
|
||||||
await froca.getNotes(this.args.noteIds);
|
const notes = await this.parentNote.getChildNotes();
|
||||||
for (const noteId of this.args.noteIds) {
|
for (const childNote of notes) {
|
||||||
const childNote = froca.getNoteFromCache(noteId);
|
|
||||||
if (!childNote) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (childNote.mime === "application/gpx+xml") {
|
if (childNote.mime === "application/gpx+xml") {
|
||||||
const track = await processNoteWithGpxTrack(this.map, childNote);
|
const track = await processNoteWithGpxTrack(this.map, childNote);
|
||||||
this.currentTrackData[childNote.noteId] = track;
|
this.currentTrackData[childNote.noteId] = track;
|
||||||
|
|||||||
Reference in New Issue
Block a user