Fix typo which prevented updating the selected element, improve comments and typings

This commit is contained in:
Pieter Vander Vennet 2023-01-03 23:45:04 +01:00
parent b4f739e506
commit 09507b3537
3 changed files with 5 additions and 3 deletions

View file

@ -73,7 +73,7 @@ export abstract class OsmObject {
if (rawData["error"] !== undefined && rawData["statuscode"] === 410) {
return "deleted"
}
return rawData["contents"].elements[0].tags
return rawData["content"].elements[0].tags
}
static async DownloadObjectAsync(