mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 12:16:11 +02:00
🐛 Fix show main component
This commit is contained in:
parent
3ca7cae6e0
commit
4582ffb440
1 changed files with 1 additions and 6 deletions
|
@ -21,7 +21,6 @@
|
||||||
[app.common.text :as txt]
|
[app.common.text :as txt]
|
||||||
[app.common.transit :as t]
|
[app.common.transit :as t]
|
||||||
[app.common.types.component :as ctk]
|
[app.common.types.component :as ctk]
|
||||||
[app.common.types.components-list :as ctkl]
|
|
||||||
[app.common.types.container :as ctn]
|
[app.common.types.container :as ctn]
|
||||||
[app.common.types.file :as ctf]
|
[app.common.types.file :as ctf]
|
||||||
[app.common.types.pages-list :as ctpl]
|
[app.common.types.pages-list :as ctpl]
|
||||||
|
@ -1251,11 +1250,7 @@
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [components-v2 (features/active-feature? state :components-v2)]
|
(let [components-v2 (features/active-feature? state :components-v2)]
|
||||||
(if components-v2
|
(if components-v2
|
||||||
(let [file-data (wsh/get-local-file state)
|
(rx/of (go-to-main-instance nil component-id))
|
||||||
component (ctkl/get-component file-data component-id)
|
|
||||||
main-instance-id (:main-instance-id component)
|
|
||||||
main-instance-page (:main-instance-page component)]
|
|
||||||
(rx/of (go-to-main-instance main-instance-page main-instance-id)))
|
|
||||||
(let [project-id (get-in state [:workspace-project :id])
|
(let [project-id (get-in state [:workspace-project :id])
|
||||||
file-id (get-in state [:workspace-file :id])
|
file-id (get-in state [:workspace-file :id])
|
||||||
page-id (get state :current-page-id)
|
page-id (get state :current-page-id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue