From 0871d6d0b966d7a86f02e01755a0ec5e5b765c63 Mon Sep 17 00:00:00 2001
From: Mathis Neumann <mathis@simpletechs.net>
Date: Sun, 10 Jul 2016 18:54:35 +0200
Subject: [PATCH] refactor entity-details

---
 app/components/entity-details.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/app/components/entity-details.js b/app/components/entity-details.js
index 196b72b..de4c117 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;
     })
-- 
GitLab