mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 23:28:31 +02:00
♻️ Cleanup of componentsv2
This commit is contained in:
parent
1e16fb8ca2
commit
f961b75bba
39 changed files with 282 additions and 1207 deletions
|
@ -1462,8 +1462,6 @@
|
|||
(:objects page)
|
||||
(:id page)
|
||||
file-id
|
||||
true
|
||||
nil
|
||||
cfsh/prepare-create-artboard-from-selection)]
|
||||
|
||||
(shape-cb shape)
|
||||
|
|
|
@ -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 true))
|
||||
(let [container (if (and (not (ctk/is-main-of? component-child child))
|
||||
(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