 
 (defmethod properties-table-html :has-data [properties owner]
   (let [table-id "properties-table"
-        history  (om/get-shared owner :history)
-        property-chan (om/get-shared owner :property-chan)]
+        history  (om/get-shared owner :history)]
     [:div.col-md-12
      [:table {:className "table table-hover"}
       [:thead

        ;; handle navigation changes
        (history-loop (tap-history) data)

        (property-loop property-chan data)

        (chart-ajax (tap-history)
                    (:chart data)
                    {:template "/4/entities/:properties/devices/:devices/measurements?startDate=:start-date&endDate=:end-date"

        (println "Setting selected project to: " projects)
        (om/update! data [:projects :selected] projects)
        (fetch-properties projects data))

      (when (and properties
                 (not= properties old-properties))
        (om/update! data [:properties :selected] properties)
        (om/update! data [:property-details :property_id] properties)
        (om/update! data [:property-details :data] (->> @data
                                                        :properties
                                                        :data
                                                        (filter #(= (:id %) properties))
                                                        first)))
      
      ;; Update the new active components
      (om/update! data :active-components (-> nav-event :args :ids)))
    (recur)))

(defn selected-range-change
  [selected selection-key {{ids :ids search :search} :args}]
