Przeglądaj źródła

fix: icon page failed to load

caused by icon having wrong type
Gabriel Horner 2 lat temu
rodzic
commit
4f7baaaffe

+ 6 - 1
deps/db/src/logseq/db/malli_schema.cljs

@@ -149,7 +149,12 @@
           [:map-of
            :uuid [:map {:closed false}
                   [:name :string]
-                  [:description :string]]]]
+                  [:description :string]
+                  [:icon {:optional true}
+                   [:map {:closed false}
+                    [:id :string]
+                    [:name :string]
+                    [:type [:enum :tabler-icon :emoji]]]]]]]
          [:order [:vector :uuid]]]]
        ;; Just for :enum
        [:position {:optional true} :string]

+ 1 - 1
deps/db/src/logseq/db/property.cljs

@@ -61,7 +61,7 @@
                             :visible true}
 
    :icon {:original-name "Icon"
-          :schema {:type :default}}
+          :schema {:type :map}}
    :public {:schema {:type :checkbox :hide? true}
             :visible true}
    :filters {:schema {:type :map}}