mirror of https://github.com/logseq/logseq
fix: the next block might inherits block attributes from the previous block
parent
68835c4b67
commit
ced50c4482
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue