mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
Merge pull request #1450 from penpot/fix-interactions-header
🐛 Fix viewer header controls when navigating from workspace
This commit is contained in:
commit
f9cc9164b3
1 changed files with 3 additions and 1 deletions
|
@ -1386,7 +1386,9 @@
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [{:keys [current-file-id current-page-id]} state
|
(let [{:keys [current-file-id current-page-id]} state
|
||||||
pparams {:file-id (or file-id current-file-id)}
|
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
|
(rx/of ::dwp/force-persist
|
||||||
(rt/nav-new-window* {:rname :viewer
|
(rt/nav-new-window* {:rname :viewer
|
||||||
:path-params pparams
|
:path-params pparams
|
||||||
|
|
Loading…
Add table
Reference in a new issue