Selaa lähdekoodia

fix(ui): emoji icon for the property key

charlie 1 vuosi sitten
vanhempi
sitoutus
b948786eff
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/main/frontend/components/property.cljs

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

@@ -627,8 +627,8 @@
            (-> (when-not config/publishing?
                  {:on-click #(shui/popup-show! (.-target %) content-fn {:as-dropdown? true :auto-focus? true})})
              (assoc :class "flex items-center"))
-           (if-let [color (some-> icon :color)]
-             [:span.flex.items-center {:style {:color (or color "inherit")}}
+           (if icon
+             [:span.flex.items-center {:style {:color (or (some-> icon :color) "inherit")}}
               (icon-component/icon icon {:size 15})]
              (property-icon property nil)))))