[ISSUE#3105] Fixed section renderer data access
This commit is contained in:
parent
4dd9b9c18c
commit
b3e2a610f1
|
@ -142,7 +142,9 @@
|
||||||
|
|
||||||
(defn- wrap-render-section-header-fn [f]
|
(defn- wrap-render-section-header-fn [f]
|
||||||
(fn [data]
|
(fn [data]
|
||||||
(reagent/as-element (f (.-section data)))))
|
(let [section (.-section data)]
|
||||||
|
(reagent/as-element (f {:title (.-title section)
|
||||||
|
:data (.-data section)})))))
|
||||||
|
|
||||||
(defn- default-render-section-header [{:keys [title data]}]
|
(defn- default-render-section-header [{:keys [title data]}]
|
||||||
(when (seq data)
|
(when (seq data)
|
||||||
|
|
Loading…
Reference in New Issue