Browse Source

fix: new property allows :default type to be selected

Gabriel Horner 1 year ago
parent
commit
d2203eb0de
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/property.cljs

+ 2 - 1
src/main/frontend/components/property.cljs

@@ -173,7 +173,8 @@
                                      {id true}))
                  (property-handler/set-block-property! repo (:block/uuid block) property-name (if (= type :default) "" :property/empty-placeholder)))))))}
 
-        (:type property-schema)
+        ;; only set when in property configure modal
+        (and *property-name (:type property-schema))
         (assoc :default-value (name (:type property-schema))))
       (shui/select-trigger
        {:class "!px-2 !py-0 !h-8"}