forked from MapComplete/MapComplete
Themes(preset_type_select): fix 'auto-icon' display
This commit is contained in:
parent
152d93bf4b
commit
81f98e62ce
3 changed files with 24 additions and 3 deletions
|
|
@ -44,8 +44,9 @@
|
|||
}
|
||||
|
||||
function getAutoIcon(mapping: { readonly if?: TagsFilter }): Readonly<Record<string, string>> {
|
||||
const ifTags = TagUtils.removeEmptyParts(mapping.if)
|
||||
for (const preset of layer.presets) {
|
||||
if (!new And(preset.tags).shadows(mapping.if)) {
|
||||
if (!new And(preset.tags).shadows(ifTags)) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue