mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 02:41:39 +02:00
🐛 Fix files ordering on dashboard project page.
This commit is contained in:
parent
65678ac674
commit
383431ec6d
1 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,6 @@
|
||||||
;; Copyright (c) 2020 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
;; Copyright (c) 2020 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
||||||
|
|
||||||
(ns uxbox.main.ui.dashboard.project
|
(ns uxbox.main.ui.dashboard.project
|
||||||
(:refer-clojure :exclude [sort-by])
|
|
||||||
(:require
|
(:require
|
||||||
[lentes.core :as l]
|
[lentes.core :as l]
|
||||||
[rumext.alpha :as mf]
|
[rumext.alpha :as mf]
|
||||||
|
@ -24,7 +23,9 @@
|
||||||
|
|
||||||
(mf/defc project-page
|
(mf/defc project-page
|
||||||
[{:keys [section team-id project-id] :as props}]
|
[{: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
|
(mf/use-effect
|
||||||
{:fn #(st/emit! (dsh/initialize-project team-id project-id))
|
{:fn #(st/emit! (dsh/initialize-project team-id project-id))
|
||||||
:deps (mf/deps team-id project-id)})
|
:deps (mf/deps team-id project-id)})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue