          name (:competition/name competition)]
      (dom/tr
       ;; TODO - this should be handle be some remote mechanism
+      ;; TODO - set app status to remote query then reset at query done
       #js {:onClick #(do
                        (chsk-send! [:event-manager/query ['[*] [:competition/name name]]])
-                       (om/transact! this `[(app/select-competition {:name ~name})]))}
+                       (om/transact! this `[(app/select-competition {:name ~name})])
+                       ;(om/transact! this `[(app/select-competition {:name {}})])
+                       )}
       (dom/td nil name)
       (dom/td nil (:competition/location competition))))))
 

  static om/IQuery
  (query [this]
         [:app/selected-page
          {:app/competitions (om/get-query Competition)}
          {:app/selected-competition
           (concat (om/get-query ClassesView)

                 (d/transact! state [{:app/id 1 :selected-page page}])
                 ;(log state)
                 ))})

(defmethod mutate 'app/set-import-status
  [{:keys [state]} key {:keys [status] :as params}]
  {:value {:keys [:app/import-status]}
   :action (fn []
             (d/transact! state [{:app/id 1 :app/import-status status}]))})

(defmethod mutate 'app/select-competition
  [{:keys [state]} key {:keys [name]}]
