 (defui ClassesView
   static om/IQuery
   (query [_]
-    (into [] (om/get-query ClassRow)))
+    `[~@(om/get-query ClassRow)])
   Object
   (render
     [this]

(defui ClassRow
  static om/IQuery
  (query [_]
    [:class/position :class/name :class/remaining :class/starting :class/id
     {:class/rounds
      [{:round/status ['*]}
       {:round/type ['*]}]}
     {:class/adjudicator-panel
      [:adjudicator-panel/name]}
     {:class/dances ['*]}])
  Object
  (render [this]
    ;(log "ClassRow")

          (dom/button #js {:onClick #(om/transact! this `[(class/create {:class/name "New Class"
                                                                         :class/id ~(random-uuid)})
                                                          :app/selected-competition])} "New")
          (dom/button #js {:className "btn btn-default"
                           :onClick #(om/transact! this `[(app/select-page {:selected-page :create-class})
                                                          (app/select-class {:class/name "New Class"
                                                                             :class/id ~(random-uuid)})
                                                          :app/selected-page])}
                      (dom/span #js {:className "glyphicon glyphicon-plus"}))

          (dom/button #js {:className "btn btn-default"
                           :onClick #()}
                      (dom/span #js {:className "glyphicon glyphicon-trash"})))

        (dom/table
          #js {:className "table table-hover table-condensed"}
