mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +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) {
|
computeGroupEntityOfCard(cards, card) {
|
||||||
return cards[card].groupEntity;
|
return card in cards && cards[card].groupEntity;
|
||||||
},
|
},
|
||||||
|
|
||||||
computeStatesOfCard(cards, card) {
|
computeStatesOfCard(cards, card) {
|
||||||
return cards[card].entities;
|
return card in cards && cards[card].entities;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user