fix export bug

This commit is contained in:
vcoppe
2024-09-10 20:17:33 +02:00
parent fb00220cc8
commit b8128aaf86

View File

@@ -62,7 +62,7 @@ export function parseGPX(gpxData: string): GPXFile {
} }
export function buildGPX(file: GPXFile, exclude: string[]): string { export function buildGPX(file: GPXFile, exclude: string[]): string {
const gpx = removeEmptyElements(file.toGPXFileType(exclude)); const gpx = file.toGPXFileType(exclude);
const builder = new XMLBuilder({ const builder = new XMLBuilder({
format: true, format: true,
@@ -99,7 +99,7 @@ export function buildGPX(file: GPXFile, exclude: string[]): string {
encoding: "UTF-8", encoding: "UTF-8",
} }
}, },
gpx gpx: removeEmptyElements(gpx)
}); });
} }