mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
Remove side effect on workspace initialization.
This commit is contained in:
parent
5fddf7ca4d
commit
e8235fcf02
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@
|
|||
(let [s {:project projectid
|
||||
:toolboxes #{}
|
||||
:page pageid}]
|
||||
(update state :workspace merge s)))
|
||||
(assoc state :workspace s)))
|
||||
|
||||
IPrintWithWriter
|
||||
(-pr-writer [mv writer _]
|
||||
|
@ -159,7 +159,7 @@
|
|||
(let [pages (project-pages state projectid)
|
||||
pageid (:id (first pages))]
|
||||
(rs/emit! (r/navigate :workspace/page {:project-uuid projectid
|
||||
:page-uuid pageid})))))
|
||||
:page-uuid pageid})))))
|
||||
IPrintWithWriter
|
||||
(-pr-writer [mv writer _]
|
||||
(-write writer "#<event:u.s.p/go-to-project")))))
|
||||
|
|
Loading…
Reference in a new issue