[ISSUE#3105] Fixed section renderer data access

This commit is contained in:
Julien Eluard 2018-01-22 10:46:45 +01:00 committed by Eric Dvorsak
parent 4dd9b9c18c
commit b3e2a610f1
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 3 additions and 1 deletions

View File

@ -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)