mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Cosmetic fixs on sitemap refs.
This commit is contained in:
parent
3a7e487f18
commit
43a1ca9fc0
1 changed files with 9 additions and 5 deletions
|
@ -29,12 +29,16 @@
|
||||||
|
|
||||||
;; --- Lenses
|
;; --- Lenses
|
||||||
|
|
||||||
|
(defn- resolve-page
|
||||||
|
[state]
|
||||||
|
(let [project (get-in state [:workspace :project])]
|
||||||
|
(->> (vals (:pages-by-id state))
|
||||||
|
(filter #(= project (:project %)))
|
||||||
|
(sort-by :created-at))))
|
||||||
|
|
||||||
(def pages-l
|
(def pages-l
|
||||||
(letfn [(getter [state]
|
(-> (l/lens resolve-page)
|
||||||
(let [project (get-in state [:workspace :project])]
|
(l/derive st/state)))
|
||||||
(stpr/project-pages state project)))]
|
|
||||||
(-> (l/lens getter)
|
|
||||||
(l/derive st/state))))
|
|
||||||
|
|
||||||
;; --- Component
|
;; --- Component
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue