forked from MapComplete/MapComplete
Fix: addnewpoint-dialog works again
This commit is contained in:
parent
61c417c546
commit
8ed0a32d15
4 changed files with 24 additions and 16 deletions
|
@ -45,8 +45,8 @@
|
|||
visible.setData(false)
|
||||
}
|
||||
|
||||
function getPref(type: CategoryType): UIEventSource<string> {
|
||||
return userstate.osmConnection.GetPreference("preferred-layer-" + type)
|
||||
function getPref(type: CategoryType): undefined | UIEventSource<string> {
|
||||
return userstate?.osmConnection?.GetPreference("preferred-layer-" + type)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue