fix: create new property in tag properties

This commit is contained in:
Tienson Qin
2025-05-22 01:33:23 +08:00
parent 65f5b9cd64
commit 0787d7ae36

View File

@@ -361,7 +361,6 @@
state)}
[state block *property-key {:keys [class-schema?]
:as opts}]
(prn :debug :key *property-key)
(let [*property (::property state)
*show-new-property-config? (::show-new-property-config? state)
*show-class-select? (::show-class-select? state)
@@ -388,7 +387,7 @@
[:div.flex.flex-row {:on-pointer-down (fn [e] (util/stop-propagation e))}
(when (not= @*show-new-property-config? :adding-property)
(cond
@*show-new-property-config?
(or (nil? property) @*show-new-property-config?)
(property-type-select property (merge opts
{:*property *property
:*property-name *property-key