forked from MapComplete/MapComplete
Chore: small code cleanup
This commit is contained in:
parent
5424932f1a
commit
6812ab3890
1 changed files with 2 additions and 3 deletions
|
@ -232,10 +232,9 @@ export default class TagRenderingConfig {
|
|||
throw "Tagrendering has a 'mappings'-object, but expected a list (" + context + ")"
|
||||
}
|
||||
|
||||
const firstMappingSize: string = json.mappings.map((m) => (m.icon?.["class"])).find(c => !!c)
|
||||
const commonIconSize =
|
||||
Utils.NoNull(
|
||||
json.mappings.map((m) => (!!m.icon ? m.icon["class"] : undefined))
|
||||
)[0] ??
|
||||
firstMappingSize ??
|
||||
json["#iconsize"] ??
|
||||
"small"
|
||||
this.mappings = json.mappings.map((m, i) =>
|
||||
|
|
Loading…
Add table
Reference in a new issue