fix: can't update non-built-in property name

close https://github.com/logseq/db-test/issues/68
pull/11525/head
Tienson Qin 2024-09-15 17:29:07 +08:00
parent 8fd59e61d5
commit 4cdedf754e
1 changed files with 1 additions and 1 deletions

View File

@ -1303,7 +1303,7 @@
(defn save-block-aux!
[block value opts]
(let [entity (db/entity [:block/uuid (:block/uuid block)])]
(when (and (:db/id entity) (not (ldb/property? entity)))
(when (and (:db/id entity) (not (ldb/built-in? entity)))
(let [value (string/trim value)]
;; FIXME: somehow frontend.components.editor's will-unmount event will loop forever
;; maybe we shouldn't save the block/file in "will-unmount" event?