0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-24 07:46:13 -05:00

🐛 Fix files ordering on dashboard project page.

This commit is contained in:
Andrey Antukh 2020-03-17 10:31:04 +01:00 committed by Alonso Torres
parent 65678ac674
commit 383431ec6d

View file

@ -9,7 +9,6 @@
;; Copyright (c) 2020 Juan de la Cruz <delacruzgarciajuan@gmail.com>
(ns uxbox.main.ui.dashboard.project
(:refer-clojure :exclude [sort-by])
(:require
[lentes.core :as l]
[rumext.alpha :as mf]
@ -24,7 +23,9 @@
(mf/defc project-page
[{:keys [section team-id project-id] :as props}]
(let [files (mf/deref files-ref)]
(let [files (->> (mf/deref files-ref)
(sort-by :modified-at)
(reverse))]
(mf/use-effect
{:fn #(st/emit! (dsh/initialize-project team-id project-id))
:deps (mf/deps team-id project-id)})