fix: restore to empty string after deleting the last block value

pull/11196/head
Tienson Qin 2024-04-05 14:10:21 +08:00
parent 86a9d1ee1a
commit caa0763cee
2 changed files with 2 additions and 1 deletions

View File

@ -392,6 +392,7 @@
(ldb/get-page @conn (:today-journal-name tx-meta))) ; today journal created already
;; (prn :debug :transact :tx-data tx-data' :tx-meta tx-meta')
(worker-util/profile "Worker db transact"
(ldb/transact! conn tx-data' tx-meta')))
nil)

View File

@ -42,7 +42,7 @@
created-block (d/entity after-db (:db/id created-from-block))]
(when (and created-block created-from-property)
[[:db/retractEntity (:db/id b)]
[:db/add (:db/id created-block) (:db/id created-from-property) ""]])))
[:db/add (:db/id created-block) (:db/ident created-from-property) ""]])))
empty-property-parents)
(remove nil?)))))