fix: the next block might inherits block attributes from the previous block

pull/1827/head
Tienson Qin 2021-05-11 22:23:26 +08:00
parent 68835c4b67
commit ced50c4482
1 changed files with 2 additions and 3 deletions

View File

@ -469,9 +469,8 @@
current-block (wrap-parse-block current-block) current-block (wrap-parse-block current-block)
new-m {:block/uuid (db/new-block-id) new-m {:block/uuid (db/new-block-id)
:block/content snd-block-text} :block/content snd-block-text}
next-block (-> (merge block new-m) next-block (-> (merge (select-keys block [:block/parent :block/left :block/format
(dissoc :db/id :block/properties :block/pre-block? :block/meta :block/page :block/level :block/file :block/journal?]) new-m)
:block/heading-level :block/type)
(wrap-parse-block)) (wrap-parse-block))
{:keys [sibling? blocks]} (profile {:keys [sibling? blocks]} (profile
"outliner insert block" "outliner insert block"