mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 01:24:41 +08:00
Remove unnecessary default attributes
This commit is contained in:
@@ -55,7 +55,7 @@ const pinColorMaterial = css`120, 120, 120`
|
||||
/** @param {PinEntity<IEntity>} entity */
|
||||
export default function pinColor(entity) {
|
||||
if (entity.PinType.PinCategory?.toString() === "mask") {
|
||||
const result = colors[entity.PinType.PinSubCategory]
|
||||
const result = colors[entity.PinType.PinSubCategory?.toString()]
|
||||
if (result) {
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user