forked from MapComplete/MapComplete
CreateNewNode action: fix crash if option are undefined
This commit is contained in:
parent
47011370dd
commit
0fa3a28a48
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export default class CreateNewNodeAction extends OsmChangeAction {
|
||||||
throw "Lat or lon are undefined!"
|
throw "Lat or lon are undefined!"
|
||||||
}
|
}
|
||||||
this._snapOnto = options?.snapOnto;
|
this._snapOnto = options?.snapOnto;
|
||||||
this._reusePointDistance = options.reusePointWithinMeters ?? 1
|
this._reusePointDistance = options?.reusePointWithinMeters ?? 1
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateChangeDescriptions(changes: Changes): ChangeDescription[] {
|
CreateChangeDescriptions(changes: Changes): ChangeDescription[] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue