mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -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
|
||||
|
||||
(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
|
||||
(letfn [(getter [state]
|
||||
(let [project (get-in state [:workspace :project])]
|
||||
(stpr/project-pages state project)))]
|
||||
(-> (l/lens getter)
|
||||
(l/derive st/state))))
|
||||
(-> (l/lens resolve-page)
|
||||
(l/derive st/state)))
|
||||
|
||||
;; --- Component
|
||||
|
||||
|
|
Loading…
Reference in a new issue