Explorar el Código

fix: press Enter duplicate block's content

close #3476
Tienson Qin hace 3 años
padre
commit
c74fc20026
Se han modificado 1 ficheros con 2 adiciones y 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)