mirror of https://github.com/logseq/logseq
fix: restore to empty string after deleting the last block value
parent
86a9d1ee1a
commit
caa0763cee
|
@ -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)
|
||||
|
|
|
@ -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?)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue