mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
computeAttributeValueDisplay: process "undefined" like "null" (#24712)
treat "undefined" as "null"
This commit is contained in:
parent
a9ddaf1bd7
commit
f7cb83482a
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user