mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: improve property type ux by locking once property is used
fixes LOG-2900. Also fixed lint
This commit is contained in:
@@ -279,9 +279,7 @@
|
||||
(contains? (:block/type page) "property")
|
||||
(cond (seq (model/get-classes-with-property (:block/uuid page)))
|
||||
{:msg "Page content deleted but unable to delete this page because classes use this property"}
|
||||
(->> (model/get-block-property-values (:block/uuid page))
|
||||
(filter (fn [[_ v]] (if (seq? v) (seq v) (some? v))))
|
||||
seq)
|
||||
(seq (model/get-block-property-values (:block/uuid page)))
|
||||
{:msg "Page content deleted but unable to delete this page because blocks use this property"})
|
||||
|
||||
(or (seq (:block/_refs page)) (contains? (:block/type page) "hidden"))
|
||||
|
||||
Reference in New Issue
Block a user