mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(views/geomap): proper refresh
This commit is contained in:
		
							parent
							
								
									b6d2de54b2
								
							
						
					
					
						commit
						a4faaa406b
					
				@ -216,13 +216,8 @@ export default class GeoView extends ViewMode<MapData> {
 | 
			
		||||
 | 
			
		||||
        // 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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user