mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix a bug when removing states from UI.
This commit is contained in:
parent
6ddc18ba5d
commit
f1636a7a9e
@ -128,10 +128,10 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
computeGroupEntityOfCard(cards, card) {
|
||||
return cards[card].groupEntity;
|
||||
return card in cards && cards[card].groupEntity;
|
||||
},
|
||||
|
||||
computeStatesOfCard(cards, card) {
|
||||
return cards[card].entities;
|
||||
return card in cards && cards[card].entities;
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user