0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix internal server error occurred when user has swapped the component and made an action 'Show main component'

This commit is contained in:
Alejandro Alonso 2023-11-17 08:39:03 +01:00 committed by Andrey Antukh
parent c27639d02e
commit 531b1a93e9

View file

@ -1318,7 +1318,8 @@
(rx/of (go-to-page page-id)) (rx/of (go-to-page page-id))
(->> stream (->> stream
(rx/filter (ptk/type? ::initialize-page)) (rx/filter (ptk/type? ::initialize-page))
(rx/take 1)) (rx/take 1)
(rx/observe-on :async))
(select-and-zoom shape-id))) (select-and-zoom shape-id)))
redirect-to-file redirect-to-file