mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 18:27:18 +02:00
🐛 Fix update layout on component restore (#6348)
This commit is contained in:
parent
a72c07b657
commit
bd208c31e2
2 changed files with 8 additions and 2 deletions
|
@ -586,8 +586,13 @@
|
|||
ldata (dsh/lookup-file-data state library-id)
|
||||
|
||||
changes (-> (pcb/empty-changes it)
|
||||
(cll/generate-restore-component ldata component-id library-id page objects))]
|
||||
(rx/of (dch/commit-changes changes))))))
|
||||
(cll/generate-restore-component ldata component-id library-id page objects))
|
||||
|
||||
frames
|
||||
(->> changes :redo-changes (keep :frame-id))]
|
||||
|
||||
(rx/of (dch/commit-changes changes)
|
||||
(ptk/data-event :layout/update {:ids frames}))))))
|
||||
|
||||
|
||||
(defn restore-components
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue