Bug fix when creating the first gpx.
This commit is contained in:
1 parent
51ab7c38e0
commit
1d5d158f8c
4 files changed
+8
-10
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user