mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Check if entities is an array (#5193)
This commit is contained in:
parent
330eb0957b
commit
0c3c007faf
@ -44,7 +44,7 @@ const addEntities = (entities: Set<string>, obj) => {
|
||||
if (obj.entity) {
|
||||
addEntityId(entities, obj.entity);
|
||||
}
|
||||
if (obj.entities) {
|
||||
if (obj.entities && Array.isArray(obj.entities)) {
|
||||
obj.entities.forEach((entity) => addEntityId(entities, entity));
|
||||
}
|
||||
if (obj.card) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user