Explorar o código

fix: press Enter duplicate block's content

close #3476
Tienson Qin %!s(int64=3) %!d(string=hai) anos
pai
achega
c74fc20026
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)
             "db should be satisfied outliner-tx-state?")
     (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))
           m (if (state/enable-block-timestamps?) (block-with-timestamps m) m)
           other-tx (:db/other-tx m)