Skip to content

Commit 50799bd

Browse files
committed
🐛 Fix GPX being overwritten on place edit
1 parent 5f9df83 commit 50799bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/src/app/modals/place-create-modal/place-create-modal.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class PlaceCreateModalComponent {
144144
delete ret["image"];
145145
delete ret["image_id"];
146146
}
147+
if (ret["gpx"] == "1") delete ret["gpx"];
147148
ret["lat"] = +ret["lat"];
148149
ret["lng"] = +ret["lng"];
149150
this.ref.close(ret);

0 commit comments

Comments
 (0)