瀏覽代碼

fix: display entity type as text type in UI

Tienson Qin 1 年之前
父節點
當前提交
e8c83a318f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/components/property.cljs

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

@@ -226,7 +226,8 @@
             property (db/sub-block (:db/id property))
             built-in? (ldb/built-in? property)
             disabled? (or built-in? config/publishing?)
-            property-type (get-in property [:block/schema :type])
+            property-type* (get-in property [:block/schema :type])
+            property-type (if (= property-type* :entity) :default property-type*)
             save-property-fn (fn [] (components-pu/update-property! property @*property-name @*property-schema))
             enable-closed-values? (contains? db-property-type/closed-value-property-types (or property-type :default))]
         [:div.property-configure.flex.flex-1.flex-col