mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
Fix initial values for filter and ordering on images page.
That causes unexpected exceptions on first views of page.
This commit is contained in:
parent
4359321bed
commit
e80ecd7175
1 changed files with 2 additions and 2 deletions
|
@ -345,8 +345,8 @@
|
||||||
{:mixins [mx/static mx/reactive]}
|
{:mixins [mx/static mx/reactive]}
|
||||||
[{:keys [id type selected] :as state}]
|
[{:keys [id type selected] :as state}]
|
||||||
(let [editable? (or (= type :own) (nil? id))
|
(let [editable? (or (= type :own) (nil? id))
|
||||||
filtering (:filter state)
|
ordering (:order state :name)
|
||||||
ordering (:order state)
|
filtering (:filter state "")
|
||||||
images (mx/react images-ref)
|
images (mx/react images-ref)
|
||||||
images (->> (vals images)
|
images (->> (vals images)
|
||||||
(filter #(= id (:collection %)))
|
(filter #(= id (:collection %)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue