Browse Source

fix: remove :block/dummy? :block/level :block/meta when transact!

Tienson Qin 4 years ago
parent
commit
fda3f6746e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/main/frontend/modules/outliner/core.cljs

+ 5 - 5
src/main/frontend/modules/outliner/core.cljs

@@ -102,12 +102,12 @@
 
   (-save [this 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)
-              (dissoc :block/children)
-              (util/remove-nils))]
-     (swap! txs-state conj m)
-     m))
+                (dissoc :block/children :block/dummy? :block/level :block/meta)
+                (util/remove-nils))]
+      (swap! txs-state conj m)
+      m))
 
   (-del [this txs-state]
     (assert (ds/outliner-txs-state? txs-state)