File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 61
61
^{:nextjournal.clerk/visibility {:result :show }}
62
62
@viewer/!sync-state
63
63
64
- #_(reset! viewer/!sync-state {})
64
+ #_(reset! viewer/!sync-state {:active-filters {} })
65
65
66
66
^{:nextjournal.clerk/visibility {:result :show }}
67
67
(clerk/with-viewer clerk-table-stats/viewer
Original file line number Diff line number Diff line change 493
493
(assoc viewer/table-viewer
494
494
:transform-fn
495
495
(fn transform-fn [{:as wrapped-value :nextjournal/keys [applied-viewer render-opts]}]
496
- ; ; TODO: drop this `(str (:id wrapped-value) "-result")`
497
- ; ; processing once we unify the `:id` in clerk between
498
- ; ; render-opts and transform-fn
499
- (let [table-state (get-in @(:!sync-state wrapped-value) [(str (:id wrapped-value) " -result" )])]
496
+ (let [table-state @(:!sync-state wrapped-value)]
500
497
501
498
(if-let [{:keys [head rows summary filter-data autocomplete-data state]}
502
499
(normalize-table-data (merge render-opts table-state)
Original file line number Diff line number Diff line change 836
836
837
837
(defn table-markup-viewer [head+body {:as opts :keys [!sync-state]}]
838
838
(r/with-let [table-state (if !sync-state
839
- ( r/cursor !sync-state [( :id opts)])
839
+ !sync-state
840
840
#?(:clj (throw (js/Error. (str " no sync var: " !sync-state)))
841
841
:cljs nil ))]
842
842
[:div
You can’t perform that action at this time.
0 commit comments