mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 23:48:42 +00:00
🐛 Fix focus to main component (#5842)
This commit is contained in:
parent
8992eb98ec
commit
688b9f2194
@ -741,12 +741,12 @@
|
|||||||
redirect-to-page
|
redirect-to-page
|
||||||
(fn [page-id shape-id]
|
(fn [page-id shape-id]
|
||||||
(rx/merge
|
(rx/merge
|
||||||
(rx/of (dcm/go-to-workspace :page-id page-id))
|
|
||||||
(->> stream
|
(->> stream
|
||||||
(rx/filter (ptk/type? ::initialize-page))
|
(rx/filter (ptk/type? ::dw/initialize-page))
|
||||||
(rx/take 1)
|
(rx/take 1)
|
||||||
(rx/observe-on :async)
|
(rx/observe-on :async)
|
||||||
(rx/mapcat (fn [_] (select-and-zoom shape-id))))))]
|
(rx/mapcat (fn [_] (select-and-zoom shape-id))))
|
||||||
|
(rx/of (dcm/go-to-workspace :page-id page-id))))]
|
||||||
|
|
||||||
(when-let [component (dm/get-in data [:components id])]
|
(when-let [component (dm/get-in data [:components id])]
|
||||||
(let [page-id (:main-instance-page component)
|
(let [page-id (:main-instance-page component)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user