Browse Source

fix: press Enter duplicate block's content

close #3476
Tienson Qin 3 years ago
parent
commit
c74fc20026
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/modules/outliner/core.cljs

+ 2 - 1
src/main/frontend/modules/outliner/core.cljs

@@ -147,7 +147,8 @@
     (assert (ds/outliner-txs-state? txs-state)
     (assert (ds/outliner-txs-state? txs-state)
             "db should be satisfied outliner-tx-state?")
             "db should be satisfied outliner-tx-state?")
     (let [m (-> (:data this)
     (let [m (-> (:data this)
-                (dissoc :block/children :block/meta :block/top? :block/bottom?)
+                (dissoc :block/children :block/meta :block/top? :block/bottom?
+                        :block/title :block/body)
                 (util/remove-nils))
                 (util/remove-nils))
           m (if (state/enable-block-timestamps?) (block-with-timestamps m) m)
           m (if (state/enable-block-timestamps?) (block-with-timestamps m) m)
           other-tx (:db/other-tx m)
           other-tx (:db/other-tx m)