0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -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:
Andrey Antukh 2016-11-11 09:43:08 +01:00
parent 4359321bed
commit e80ecd7175
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -345,8 +345,8 @@
{:mixins [mx/static mx/reactive]}
[{:keys [id type selected] :as state}]
(let [editable? (or (= type :own) (nil? id))
filtering (:filter state)
ordering (:order state)
ordering (:order state :name)
filtering (:filter state "")
images (mx/react images-ref)
images (->> (vals images)
(filter #(= id (:collection %)))