0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-19 11:11:21 -05:00

🐛 Fix dashboard ordering issue.

This commit is contained in:
Andrey Antukh 2021-05-26 15:22:41 +02:00
parent 7a32d902ec
commit 6710d99878
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,6 @@
[{:keys [redo-changes undo-changes origin save-undo? file-id]
:or {save-undo? true}}]
(log/debug :msg "commit-changes"
:js/redo-changes redo-changes
:js/undo-changes undo-changes)

View file

@ -171,7 +171,8 @@
(for [{:keys [id] :as project} projects]
(let [files (when recent-map
(->> (vals recent-map)
(filterv #(= id (:project-id %)))))]
(filterv #(= id (:project-id %)))
(sort-by :modified-at #(compare %2 %1))))]
[:& project-item {:project project
:files files
:first? (= project (first projects))