0
Fork 0
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:
Andrés Moya 2022-01-10 14:10:29 +01:00
parent 1ded4b2b28
commit 238ec60f89

View file

@ -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