mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
remove adding opts to outliner-tx/transact!
This commit is contained in:
@@ -60,12 +60,9 @@
|
||||
|
||||
(defn indent-outdent-block!
|
||||
[block direction]
|
||||
(let [repo (state/get-current-repo)
|
||||
opts (cond-> {:outliner-op :move-blocks}
|
||||
(config/db-based-graph? repo)
|
||||
(assoc :persist-op? true :repo repo))]
|
||||
(outliner-tx/transact! opts
|
||||
(outliner-core/indent-outdent-blocks! [block] (= direction :right)))))
|
||||
(outliner-tx/transact!
|
||||
{:outliner-op :move-blocks}
|
||||
(outliner-core/indent-outdent-blocks! [block] (= direction :right))))
|
||||
|
||||
(defn select-block!
|
||||
[block-uuid]
|
||||
|
||||
Reference in New Issue
Block a user