forked from MapComplete/MapComplete
Merge branch 'master' into develop
This commit is contained in:
commit
195a9e9298
14 changed files with 188 additions and 131 deletions
|
|
@ -102,7 +102,7 @@
|
|||
console.log("Creating new point at", location, "snapped to", snapTo, "with tags", tags);
|
||||
|
||||
let snapToWay: undefined | OsmWay = undefined;
|
||||
if (snapTo !== undefined) {
|
||||
if (snapTo !== undefined && snapTo !== null) {
|
||||
const downloaded = await state.osmObjectDownloader.DownloadObjectAsync(snapTo, 0);
|
||||
if (downloaded !== "deleted") {
|
||||
snapToWay = downloaded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue