computeAttributeValueDisplay: process "undefined" like "null" (#24712)

treat "undefined" as "null"
This commit is contained in:
ildar170975 2025-03-25 15:54:22 +03:00 committed by GitHub
parent a9ddaf1bd7
commit f7cb83482a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ export const computeAttributeValueDisplay = (
value !== undefined ? value : stateObj.attributes[attribute];
// Null value, the state is unknown
if (attributeValue === null) {
if (attributeValue === null || attributeValue === undefined) {
return localize("state.default.unknown");
}