fix: exclude built-in properties when comparing content

pull/1846/head
Tienson Qin 2021-05-13 20:07:02 +08:00
parent 5277780d51
commit 9273ee83f2
1 changed files with 3 additions and 2 deletions

View File

@ -354,12 +354,13 @@
([block value
{:keys [force?]
:as opts}]
(let [{:block/keys [uuid content file page format repo content properties]} block
(let [{:block/keys [uuid file page format repo content properties]} block
repo (or repo (state/get-current-repo))
e (db/entity repo [:block/uuid uuid])
format (or format (state/get-preferred-format))
page (db/entity repo (:db/id page))
block-id (when (map? properties) (get properties :id))]
block-id (when (map? properties) (get properties :id))
content (text/remove-built-in-properties! format content)]
(cond
(another-block-with-same-id-exists? uuid block-id)
(notification/show!