mirror of
https://github.com/penpot/penpot.git
synced 2026-05-31 20:58:08 +00:00
🐛 Fix prop creation on variants move layer
This commit is contained in:
parent
1da69cfa38
commit
796aaed11e
@ -146,8 +146,8 @@
|
|||||||
(defn- create-new-properties-from-variant
|
(defn- create-new-properties-from-variant
|
||||||
[shape min-props data container-name base-properties]
|
[shape min-props data container-name base-properties]
|
||||||
(let [component (ctcl/get-component data (:component-id shape) true)
|
(let [component (ctcl/get-component data (:component-id shape) true)
|
||||||
|
component-full-name (cfh/merge-path-item (:path component) (:name component))
|
||||||
add-name? (not= (:name component) container-name)
|
add-name? (not= component-full-name container-name)
|
||||||
props (ctv/merge-properties base-properties
|
props (ctv/merge-properties base-properties
|
||||||
(:variant-properties component))
|
(:variant-properties component))
|
||||||
new-props (- min-props
|
new-props (- min-props
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user