Skip to content

Commit bc08919

Browse files
committed
Add delete component without reagent-component
1 parent 22ccfbd commit bc08919

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cljs/re_crud/components.cljs

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
(defn reagent-component [id form view events config comp-type]
1414
(let [component (get-in skins [(:skin view) comp-type])]
15-
(component id form view events config)))
15+
(if component
16+
(component id form view events config)
17+
[:p "No CRUD Component defined"])))
1618

1719
(defn new [comp-type {:keys [id form fetch perform view config] :as params}]
1820
(let [events (e/events params)]
@@ -25,3 +27,4 @@
2527
(def list (partial new :list))
2628
(def create (partial new :create))
2729
(def update (partial new :update))
30+
(def delete (partial new :delete))

0 commit comments

Comments
 (0)