Bug fix when creating the first gpx.

This commit is contained in:
vdv committed 2023-02-13 20:57:30 +01:00
1 parent 51ab7c38e0
commit 1d5d158f8c
4 files changed
+8 -10

No files matched your search

+1 -1
View File
@@ -421,7 +421,7 @@ export const putGpx = async (params: any) => {
let { id, gpx } = params;
try {
if (id === 'new') {
if (id === 'new' || !id) {
const date = !!gpx.metadata.time
? new Date(gpx.metadata.time)
: new Date();