diff --git a/app/components/entity-details.js b/app/components/entity-details.js index 196b72b203b9decc731970e379a2f0b4d9645508..de4c1176d791e56294002ed52ff56af714eb1a43 100644 --- a/app/components/entity-details.js +++ b/app/components/entity-details.js @@ -7,12 +7,11 @@ export default Ember.Component.extend({ this.debug('entity', this.get('entity')); const properties = []; const entity = this.get('entity'); - this.get('entity').eachAttribute( - (property) => { - if(!(property.indexOf('Id') >= 0)){ - properties.push({key: property, value: entity.get(property)}); - } - }); + entity.eachAttribute(property => { + if(property.indexOf('Id') < 0) { + properties.push({key: property, value: entity.get(property)}); + } + }); this.debug('properties', properties); return properties; })