   (reify
     om/IRender
     (render [_]
-      (apply dom/tbody nil
-             (om/build-all tr-sel app
-                           {:opts (if (= selection-type :one)
-                                    (assoc opts
-                                           :clear-selections-fn
-                                           (fn [_]
-                                             (om/transact! app
-                                                           (fn [data]
-                                                             (vec (map #(assoc % :tr-selected false) data))))))
-                                    opts)})))))
+      (apply
+       dom/tbody nil
+       (om/build-all
+        tr-sel app
+        {:opts
+         (if (= selection-type :one)
+           (assoc opts
+                  :clear-selections-fn
+                  (fn [_]
+                    (om/transact!
+                     app
+                     (fn [data]
+                       (vec (map #(assoc % :tr-selected false) data))))))
+           opts)})))))
 
 
 ;; END table

                  ;; если указан то сохранять в сеть
                  (ixnet/get-data
                   uri-save
                   (assoc (app-to-row-fn) :id (@app :id))
                   (fn [result]
                     (when post-save-fn (post-save-fn result))))
                  ;; иначе альтернитиваная функция

                                    (when clear-selections-fn
                                      (clear-selections-fn))
                                    (om/transact! app :tr-selected not)
                                    (when on-select-fn
                                      (on-select-fn @app))
                                    1)}
             (app-to-tds-seq-fn app) ))))

