fix: block property deletion

e.g. select "Delete property"
This commit is contained in:
Gabriel Horner
2023-08-02 17:30:06 -04:00
parent d3ba0de946
commit 24f38f232f

View File

@@ -335,7 +335,7 @@
(defn batch-remove-property!
[repo block-ids key]
(when-let [property-uuid (if (uuid? key)
uuid
key
(:block/uuid (db/entity [:block/name (util/page-name-sanity-lc (name key))])))]
(let [txs (mapcat
(fn [id]