0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Merge pull request #1450 from penpot/fix-interactions-header

🐛 Fix viewer header controls when navigating from workspace
This commit is contained in:
Andrey Antukh 2022-01-10 15:31:28 +01:00 committed by GitHub
commit f9cc9164b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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