Просмотр исходного кода

fix: undo creation of journal page

fixes https://github.com/logseq/db-test/issues/25
Tienson Qin 1 год назад
Родитель
Сommit
f1b0622ecd
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/main/frontend/worker/undo_redo2.cljs

+ 2 - 1
src/main/frontend/worker/undo_redo2.cljs

@@ -333,7 +333,8 @@
 (defmethod db-listener/listen-db-changes :gen-undo-ops
   [_ {:keys [repo tx-data tx-meta db-after db-before]}]
   (let [{:keys [outliner-op]} tx-meta]
-    (when (and outliner-op (not (false? (:gen-undo-ops? tx-meta))))
+    (when (and outliner-op (not (false? (:gen-undo-ops? tx-meta)))
+               (not (:create-today-journal? tx-meta)))
       (let [editor-info (:editor-info tx-meta)
             all-ids (distinct (map :e tx-data))
             retracted-ids (set