mirror of
https://github.com/penpot/penpot.git
synced 2025-03-23 05:01:23 -05:00
🐛 Fix incorrect navigate event on assets tab click
This commit is contained in:
parent
8ef4850a06
commit
384f13a9e2
1 changed files with 3 additions and 3 deletions
|
@ -367,14 +367,14 @@
|
|||
(watch [_ state _]
|
||||
(let [team-id (or team-id (:current-team-id state))
|
||||
file-id (or file-id (:current-file-id state))
|
||||
;: FIXME: why not :current-page-id
|
||||
page-id (or page-id
|
||||
page-id (or page-id (:current-page-id state)
|
||||
(dm/get-in state [:workspace-data :pages 0]))
|
||||
|
||||
params (-> (rt/get-params state)
|
||||
(assoc :team-id team-id)
|
||||
(assoc :file-id file-id)
|
||||
(assoc :page-id page-id)
|
||||
(assoc :layout layout)
|
||||
(update :layout #(or layout %))
|
||||
(d/without-nils))]
|
||||
(rx/of (rt/nav :workspace params options))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue