       [:dt "Planning Considerations"] [:dd (get profile_data :planning_considerations "")]
       [:dt "Draught Proofing"] [:dd (get profile_data :draught_proofing "")]
       [:dt "Occupancy Under 18"] [:dd (get profile_data :occupancy_under_18 "")]
-      [:dt "Profile Health"] [:dd (get profile_data :profile_health "")]]]
-    ))
-
-(defn profiles-div [data owner]
-  (reify
-    om/IRender
-    (render [_]
-      (let [selected-property-id (-> data :active-components :properties)
-            profiles             (get-profiles selected-property-id data)]
-        (html
-         [:div
-          [:h3 "Profiles"]
-          (if (seq profiles)
-            (format-profiles profiles)
-            [:div.col-md-12.text-center
-             [:p.lead {:style {:padding-top 30}}
-              "No profile data to display"]])])))))
+      [:dt "Profile Health"] [:dd (get profile_data :profile_health "")]]])

        first
        :profiles))

(defn format-profiles [profiles]
  (let [profile_data (:profile_data (first profiles))]
    [:div.col-md-12
     [:dl
      [:dt "Number Of Storeys"] [:dd (get profile_data :number_of_storeys "")]
      [:dt "Air Tightness Equipment"] [:dd (get profile_data :air_tightness_equipment "")]

(ns kixi.hecuba.tabs.profiles
  (:require [om.core :as om :include-macros true]
            [sablono.core :as html :refer-macros [html]]
            [kixi.hecuba.bootstrap :as bs]))

(defn get-profiles [selected-property-id data]
  (->>  data
