mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 04:18:41 +00:00
Fix wrong initial filtering and ordering values in icons page.
This commit is contained in:
parent
dde3991702
commit
4359321bed
@ -41,6 +41,8 @@
|
|||||||
|
|
||||||
(defn- contains-term?
|
(defn- contains-term?
|
||||||
[phrase term]
|
[phrase term]
|
||||||
|
{:pre [(string? phrase)
|
||||||
|
(string? term)]}
|
||||||
(let [term (name term)]
|
(let [term (name term)]
|
||||||
(str/includes? (str/lower phrase) (str/trim (str/lower term)))))
|
(str/includes? (str/lower phrase) (str/trim (str/lower term)))))
|
||||||
|
|
||||||
@ -320,8 +322,8 @@
|
|||||||
{:mixins [mx/static mx/reactive]}
|
{:mixins [mx/static mx/reactive]}
|
||||||
[{:keys [selected id type] :as state}]
|
[{:keys [selected id type] :as state}]
|
||||||
(let [editable? (or (= type :own) (nil? id))
|
(let [editable? (or (= type :own) (nil? id))
|
||||||
ordering (:order state)
|
ordering (:order state :name)
|
||||||
filtering (:filter state)
|
filtering (:filter state "")
|
||||||
icons (mx/react icons-ref)
|
icons (mx/react icons-ref)
|
||||||
icons (->> (vals icons)
|
icons (->> (vals icons)
|
||||||
(filter #(= id (:collection %)))
|
(filter #(= id (:collection %)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user