From 54106610cb8fafcf3920617e1aea25da42816d1c Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 14 Jan 2024 16:00:14 +0800 Subject: [PATCH] fix: heading e2e tests --- src/main/frontend/handler/file_based/editor.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/handler/file_based/editor.cljs b/src/main/frontend/handler/file_based/editor.cljs index c6f53087b..1a6e24225 100644 --- a/src/main/frontend/handler/file_based/editor.cljs +++ b/src/main/frontend/handler/file_based/editor.cljs @@ -8,7 +8,7 @@ [frontend.format.mldoc :as mldoc] [logseq.outliner.core :as outliner-core] [frontend.state :as state] - [logseq.outliner.transaction :as outliner-tx] + [frontend.modules.outliner.ui :as ui-outliner-tx] [frontend.util :as util] [frontend.util.clock :as clock] [frontend.util.drawer :as drawer] @@ -191,7 +191,7 @@ (set-block-property-aux! block :heading heading)))) (defn batch-set-heading! [block-ids heading] - (outliner-tx/transact! + (ui-outliner-tx/transact! {:outliner-op :save-block} (doseq [block-id block-ids] (when-let [block (set-heading-aux! block-id heading)]