1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Fix detect available entities

This commit is contained in:
Markus Grigull 2015-10-14 13:50:27 +02:00
parent c3a4e2d120
commit 4180e37bcc

View file

@ -10,8 +10,12 @@ export default Ember.Component.extend({
}.property('entity'),
entityAvailable: function() {
var properties = this.get('entity.properties');
return (properties.get('length') > 0);
if (this.get('entity')) {
var properties = this.get('entity.properties');
return (properties.get('length') > 0);
} else {
return false;
}
}.property('entity'),
actions: {