mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Propagate parent changes con reset overrides
This commit is contained in:
parent
d08dfaa022
commit
343efc68c5
1 changed files with 8 additions and 1 deletions
|
@ -708,11 +708,18 @@
|
||||||
components-v2
|
components-v2
|
||||||
(features/active-feature? state "components/v2")
|
(features/active-feature? state "components/v2")
|
||||||
|
|
||||||
|
shape-inst (ctn/get-shape container id)
|
||||||
|
swap-slot (-> (ctn/get-shape container id)
|
||||||
|
(ctk/get-swap-slot))
|
||||||
changes
|
changes
|
||||||
(-> (pcb/empty-changes it)
|
(-> (pcb/empty-changes it)
|
||||||
(pcb/with-container container)
|
(pcb/with-container container)
|
||||||
(pcb/with-objects (:objects container))
|
(pcb/with-objects (:objects container))
|
||||||
(dwlh/generate-sync-shape-direct file-full libraries container id true components-v2))]
|
(dwlh/generate-sync-shape-direct file-full libraries container id true components-v2)
|
||||||
|
(cond->
|
||||||
|
(some? swap-slot)
|
||||||
|
;; We need to propagate parent changes
|
||||||
|
(dwlh/generate-sync-shape-direct file-full libraries container (:parent-id shape-inst) true components-v2)))]
|
||||||
|
|
||||||
(log/debug :msg "RESET-COMPONENT finished" :js/rchanges (log-changes
|
(log/debug :msg "RESET-COMPONENT finished" :js/rchanges (log-changes
|
||||||
(:redo-changes changes)
|
(:redo-changes changes)
|
||||||
|
|
Loading…
Add table
Reference in a new issue