                             (om/update! projects :selected nil))
                 ;; TODO: Add Error Handler
                 :headers {"Accept" "application/edn"}
-                :response-format :text})
-          (println "Not fetching projects!"))
+                :response-format :text}))
 
         ;; update our current id with the new one
         (om/update! projects :programme-id new-programme-id)

      (let [{:keys [sensors active-components]} data
            new-device-id                       (:devices active-components)
            property-id                         (:properties active-components)]

        (println "Active Components: " active-components)

        ;; handle selection perties table
        (when-not new-device-id

                            (om/update! programmes :selected nil))
                ;; TODO: Add Error Handler
                :headers {"Accept" "application/edn"}
                :response-format :text}))

        ;; handle selection on programmes table (this should be nil if called)
        (om/update! programmes :selected (:programmes active-components))))
