mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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];
|
const attributeValue = value.attributes[key];
|
||||||
|
|
||||||
if (
|
if (
|
||||||
attributeValue !== null &&
|
attributeValue !== undefined &&
|
||||||
JSON.stringify(attributeValue).toLowerCase().includes(valueFilter)
|
JSON.stringify(attributeValue).toLowerCase().includes(valueFilter)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user