mirror of
https://github.com/penpot/penpot.git
synced 2026-05-30 20:28:07 +00:00
🐛 Fix incorrect attrs references on generate-sync-shape (#8776)
For :component
This commit is contained in:
parent
4174d6a05b
commit
e4cc7d72da
@ -603,7 +603,7 @@
|
|||||||
(defmethod generate-sync-shape :components
|
(defmethod generate-sync-shape :components
|
||||||
[_ changes _library-id container shape libraries current-file-id]
|
[_ changes _library-id container shape libraries current-file-id]
|
||||||
(let [shape-id (:id shape)
|
(let [shape-id (:id shape)
|
||||||
file (get current-file-id libraries)]
|
file (get libraries current-file-id)]
|
||||||
(generate-sync-shape-direct changes file libraries container shape-id false)))
|
(generate-sync-shape-direct changes file libraries container shape-id false)))
|
||||||
|
|
||||||
(defmethod generate-sync-shape :colors
|
(defmethod generate-sync-shape :colors
|
||||||
@ -837,7 +837,7 @@
|
|||||||
shape-inst' (ctn/get-head-shape (:objects container-inst) parent)
|
shape-inst' (ctn/get-head-shape (:objects container-inst) parent)
|
||||||
component' (or (ctkl/get-component library (:component-id shape-inst'))
|
component' (or (ctkl/get-component library (:component-id shape-inst'))
|
||||||
(ctkl/get-deleted-component library (:component-id shape-inst')))]
|
(ctkl/get-deleted-component library (:component-id shape-inst')))]
|
||||||
(if (some? component)
|
(if (some? component')
|
||||||
(recur shape-inst'
|
(recur shape-inst'
|
||||||
component')
|
component')
|
||||||
nil))))))
|
nil))))))
|
||||||
@ -2241,7 +2241,7 @@
|
|||||||
(contains? #{:auto :fix} (:layout-item-h-sizing shape-main))
|
(contains? #{:auto :fix} (:layout-item-h-sizing shape-main))
|
||||||
(propagate-attrs shape-main #{:layout-item-h-sizing} omit-touched?)
|
(propagate-attrs shape-main #{:layout-item-h-sizing} omit-touched?)
|
||||||
|
|
||||||
(contains? #{:auto :fix} (:layout-item-h-sizing shape-main))
|
(contains? #{:auto :fix} (:layout-item-v-sizing shape-main))
|
||||||
(propagate-attrs shape-main #{:layout-item-v-sizing} omit-touched?)))
|
(propagate-attrs shape-main #{:layout-item-v-sizing} omit-touched?)))
|
||||||
{:ignore-touched true})
|
{:ignore-touched true})
|
||||||
|
|
||||||
@ -2271,7 +2271,7 @@
|
|||||||
(contains? #{:auto :fix} (:layout-item-h-sizing shape-copy))
|
(contains? #{:auto :fix} (:layout-item-h-sizing shape-copy))
|
||||||
(propagate-attrs shape-copy #{:layout-item-h-sizing} omit-touched?)
|
(propagate-attrs shape-copy #{:layout-item-h-sizing} omit-touched?)
|
||||||
|
|
||||||
(contains? #{:auto :fix} (:layout-item-h-sizing shape-copy))
|
(contains? #{:auto :fix} (:layout-item-v-sizing shape-copy))
|
||||||
(propagate-attrs shape-copy #{:layout-item-v-sizing} omit-touched?)))
|
(propagate-attrs shape-copy #{:layout-item-v-sizing} omit-touched?)))
|
||||||
{:ignore-touched true})
|
{:ignore-touched true})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user