Fix group toggle not showing

This commit is contained in:
Paulus Schoutsen 2016-02-20 16:04:35 -08:00
parent 40ff847f2d
commit 4a85f5fa63

View File

@ -41,6 +41,6 @@ export default new Polymer({
}
// only show if we can toggle 2+ entities in group
return states.reduce((sum, state) => sum + canToggle(state.entityId)) > 1;
return states.reduce((sum, state) => sum + canToggle(state.entityId), 0) > 1;
},
});