Skip to content
Snippets Groups Projects
Commit 0871d6d0 authored by Mathis Neumann's avatar Mathis Neumann
Browse files

refactor entity-details

parent c52c3e31
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,8 @@ export default Ember.Component.extend({ ...@@ -7,9 +7,8 @@ export default Ember.Component.extend({
this.debug('entity', this.get('entity')); this.debug('entity', this.get('entity'));
const properties = []; const properties = [];
const entity = this.get('entity'); const entity = this.get('entity');
this.get('entity').eachAttribute( entity.eachAttribute(property => {
(property) => { if(property.indexOf('Id') < 0) {
if(!(property.indexOf('Id') >= 0)){
properties.push({key: property, value: entity.get(property)}); properties.push({key: property, value: entity.get(property)});
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment