mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Guard for undefined values in attribute filtering (#9089)
This commit is contained in:
parent
6e5e2625d6
commit
2af211b543
@ -410,7 +410,7 @@ class HaPanelDevState extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
||||
const attributeValue = value.attributes[key];
|
||||
|
||||
if (
|
||||
attributeValue !== null &&
|
||||
attributeValue !== undefined &&
|
||||
JSON.stringify(attributeValue).toLowerCase().includes(valueFilter)
|
||||
) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user