Fix: addnewpoint-dialog works again

This commit is contained in:
Pieter Vander Vennet 2023-05-21 23:27:01 +02:00
parent 61c417c546
commit 8ed0a32d15
4 changed files with 24 additions and 16 deletions

View file

@ -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>