mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix: view edn export fails for group by
Fixes https://github.com/logseq/db-test/issues/300
This commit is contained in:
@@ -23,10 +23,12 @@
|
||||
(notification/show! "Copied block's data!" :success)))
|
||||
(notification/show! "No block found" :warning)))
|
||||
|
||||
(defn export-view-nodes-data [node-ids]
|
||||
(defn export-view-nodes-data [rows {:keys [group-by?]}]
|
||||
(p/let [result (state/<invoke-db-worker :thread-api/export-edn
|
||||
(state/get-current-repo)
|
||||
{:export-type :view-nodes :node-ids node-ids})
|
||||
{:export-type :view-nodes
|
||||
:rows rows
|
||||
:group-by? group-by?})
|
||||
pull-data (with-out-str (pprint/pprint result))]
|
||||
(when-not (= :export-edn-error result)
|
||||
(.writeText js/navigator.clipboard pull-data)
|
||||
|
||||
Reference in New Issue
Block a user