Fix exported plan GPX missing overnight waypoint metadata

ExportButton.getWaypoints() wasn't reading the overnight flag from
Yjs Y.Maps, so exported plan GPX was missing <type>overnight</type>.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-11 00:28:51 +02:00
parent 857100ef94
commit cd180bc13b
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -23,6 +23,7 @@ function getWaypoints(yjs: YjsState) {
lat: yMap.get("lat") as number,
lon: yMap.get("lon") as number,
name: yMap.get("name") as string | undefined,
isDayBreak: yMap.get("overnight") === true ? true : undefined,
}));
}