Browse Source

fix: can't set class property type

also remove unused bindings
Gabriel Horner 1 year ago
parent
commit
fc751725f0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main/frontend/components/property.cljs

+ 4 - 3
src/main/frontend/components/property.cljs

@@ -163,7 +163,8 @@
              (p/do!
               (when block
                 (pv/exit-edit-property))
-              (reset! *show-new-property-config? false)
+              (when *show-new-property-config?
+                (reset! *show-new-property-config? false))
               (components-pu/update-property! property property-name schema)
               (when block
                 (let [id (str "ls-property-" (:db/id block) "-" (:db/id property) "-editor")]
@@ -212,7 +213,7 @@
                    (when-let [*show-property-config? (:*show-new-property-config? (last (:rum/args state)))]
                      (reset! *show-property-config? false))
                    state)}
-  [state property {:keys [inline-text add-new-property? _*show-new-property-config?] :as opts}]
+  [state property {:keys [inline-text add-new-property?] :as opts}]
   (let [values (rum/react (::values state))]
     (when-not (= :loading values)
       (let [*property-name (::property-name state)
@@ -433,7 +434,7 @@
                      (reset! *property-key nil))
                    state)}
   shortcut/disable-all-shortcuts
-  [state entity *property-key *property-value {:keys [class-schema? _page-configure? in-block-container?]
+  [state entity *property-key *property-value {:keys [class-schema? in-block-container?]
                                                :as opts}]
   (let [*show-new-property-config? (::show-new-property-config? state)
         entity-properties (->> (keys (:block/properties entity))