🐛 Fix loading placeholder

This commit is contained in:
Eva 2022-10-11 10:05:42 +02:00
parent c4c419b971
commit 796211c655
3 changed files with 13 additions and 4 deletions

View file

@ -24,10 +24,11 @@
(let [files-map (mf/deref refs/dashboard-shared-files)
projects (mf/deref refs/dashboard-projects)
default-project (->> projects vals (d/seek :is-default))
files (->> (vals files-map)
files (if (nil? files-map)
nil
(->> (vals files-map)
(sort-by :modified-at)
(reverse)
(not-empty))
(reverse)))
components-v2 (features/use-feature :components-v2)

View file

@ -35,7 +35,7 @@
(mf/defc loading-placeholder
[]
[:div.grid-empty-placeholder
[:div.grid-empty-placeholder.loader
[:div.icon i/loader]
[:div.text (tr "dashboard.loading-files")]])