Skip to content

Commit

Permalink
fix: press Enter duplicate block's content
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Dec 23, 2021
1 parent fc8d272 commit c74fc20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/frontend/modules/outliner/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c74fc20

Please sign in to comment.