mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 19:36:38 +02:00
🐛 Fix is-main-of? calculation for v2 components
This commit is contained in:
parent
8f156a7fd0
commit
b9743891bb
3 changed files with 24 additions and 20 deletions
|
@ -179,7 +179,7 @@
|
|||
component-child (first component-children)]
|
||||
(if (or (nil? child) (nil? component-child))
|
||||
container
|
||||
(let [container (if (and (not (ctk/is-main-of? component-child child))
|
||||
(let [container (if (and (not (ctk/is-main-of? component-child child true))
|
||||
(nil? (ctk/get-swap-slot child))
|
||||
(ctk/instance-head? child))
|
||||
(let [slot (guess-swap-slot component-child component-container)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue