Browse Source

fix: template e2e test

Tienson Qin 2 years ago
parent
commit
e179e1c86e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -2076,10 +2076,10 @@
 
 
                          :else
                          :else
                          true)]
                          true)]
-         (save-current-block!)
          (outliner-tx/transact!
          (outliner-tx/transact!
            {:outliner-op :insert-blocks
            {:outliner-op :insert-blocks
             :created-from-journal-template? journal?}
             :created-from-journal-template? journal?}
+           (save-current-block!)
            (let [result (outliner-core/insert-blocks! blocks'
            (let [result (outliner-core/insert-blocks! blocks'
                                                       target
                                                       target
                                                       (assoc opts
                                                       (assoc opts