forked from MapComplete/MapComplete
Fix crash when trying to change user settings
This commit is contained in:
parent
b650dec407
commit
f02a3d8392
1 changed files with 3 additions and 0 deletions
|
@ -926,6 +926,9 @@ export default class TagRenderingConfig {
|
|||
* Might give undefined if setting to unknown is not possible
|
||||
*/
|
||||
public removeToSetUnknown(partOfLayer: LayerConfig, currentTags: Record<string, string>): string[] | undefined {
|
||||
if(!partOfLayer?.source || !currentTags){
|
||||
return
|
||||
}
|
||||
const toDelete = new Set<string>()
|
||||
if (this.freeform) {
|
||||
toDelete.add(this.freeform.key)
|
||||
|
|
Loading…
Reference in a new issue