mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix viewer header controls when navigating from workspace
This commit is contained in:
parent
1ded4b2b28
commit
238ec60f89
1 changed files with 3 additions and 1 deletions
|
@ -1386,7 +1386,9 @@
|
|||
(watch [_ state _]
|
||||
(let [{:keys [current-file-id current-page-id]} state
|
||||
pparams {:file-id (or file-id current-file-id)}
|
||||
qparams {:page-id (or page-id current-page-id) :section section}]
|
||||
qparams (cond-> {:page-id (or page-id current-page-id)}
|
||||
(some? section)
|
||||
(assoc :section section))]
|
||||
(rx/of ::dwp/force-persist
|
||||
(rt/nav-new-window* {:rname :viewer
|
||||
:path-params pparams
|
||||
|
|
Loading…
Add table
Reference in a new issue