remove unnecessary when creating a new block

This commit is contained in:
Tienson Qin
2023-06-16 14:00:36 +08:00
parent 90fe19fa82
commit 48954897e9

View File

@@ -369,7 +369,6 @@
[fst-block-text snd-block-text] (compute-fst-snd-block-text value pos)
current-block (assoc block :block/content fst-block-text)
current-block (apply dissoc current-block db-schema/retract-attributes)
current-block (editor-impl/wrap-parse-block current-block)
new-m {:block/uuid (db/new-block-id)
:block/content snd-block-text}
next-block (-> (merge (select-keys block [:block/parent :block/left :block/format