PinCategory case insensitive

This commit is contained in:
barsdeveloper
2023-04-02 17:22:08 +02:00
parent b870517edc
commit 938924cbfb
4 changed files with 7 additions and 7 deletions

View File

@@ -311,7 +311,7 @@ export default class PinEntity extends IEntity {
/** @return {CSSResult} */
pinColor() {
return Configuration.pinColor[this.getType()]
?? Configuration.pinColor[this.PinType$PinCategory]
?? Configuration.pinColor[this.PinType$PinCategory.toLowerCase()]
?? Configuration.pinColor["default"]
}
}

View File

@@ -81,7 +81,7 @@ export default class PinTemplate extends ITemplate {
case "Set": return SVGIcon.set
case "Map": return SVGIcon.map
}
if (this.element.entity.PinType$PinCategory === "delegate") {
if (this.element.entity.PinType$PinCategory.toLocaleLowerCase() === "delegate") {
return SVGIcon.delegate
}
return SVGIcon.genericPin