Skip to content

Build your personal knowledge base with Trilium Notes

fix(geomap): clone dropped note under the map instead of itself

Elian Doran706b7bd82d39
diff --git a/apps/client/src/widgets/collections/geomap/index.tsx b/apps/client/src/widgets/collections/geomap/index.tsx
index 5ce5a3c015..2dc2e54795 100644
--- a/apps/client/src/widgets/collections/geomap/index.tsx
+++ b/apps/client/src/widgets/collections/geomap/index.tsx
@@ -127,7 +127,7 @@ export default function GeoView({ note, noteIds, viewConfig, saveConfig }: ViewM
if (parents?.includes(note.noteId)) {
await moveMarker(noteId, latlng);
} else {
- await branches.cloneNoteToParentNote(noteId, noteId);
+ await branches.cloneNoteToParentNote(noteId, note.noteId);
await moveMarker(noteId, latlng);
}
}