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:
parent
c3a4e2d120
commit
4180e37bcc
1 changed files with 6 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue