forked from MapComplete/MapComplete
refactoring: fix basic flow to add a new point
This commit is contained in:
parent
52a0810ea9
commit
0241f89d3d
109 changed files with 1931 additions and 1446 deletions
|
@ -73,7 +73,8 @@ export abstract class OsmObject {
|
|||
if (rawData["error"] !== undefined && rawData["statuscode"] === 410) {
|
||||
return "deleted"
|
||||
}
|
||||
return rawData["content"].elements[0].tags
|
||||
// Tags is undefined if the element does not have any tags
|
||||
return rawData["content"].elements[0].tags ?? {}
|
||||
}
|
||||
|
||||
static async DownloadObjectAsync(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue