mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 14:46:12 +02:00
🐛 Fix regression with component thumbnails
This commit is contained in:
parent
30a06249ff
commit
75e7cfb69e
1 changed files with 6 additions and 0 deletions
|
@ -881,6 +881,12 @@
|
||||||
(rx/of
|
(rx/of
|
||||||
(dwu/start-undo-transaction undo-id)
|
(dwu/start-undo-transaction undo-id)
|
||||||
(update-component shape-id undo-group)
|
(update-component shape-id undo-group)
|
||||||
|
|
||||||
|
;; These two calls are necessary for properly sync thumbnails
|
||||||
|
;; when a main component does not live in the same page
|
||||||
|
(update-component-thumbnail-sync state component-id file-id "frame")
|
||||||
|
(update-component-thumbnail-sync state component-id file-id "component")
|
||||||
|
|
||||||
(sync-file current-file-id file-id :components component-id undo-group)
|
(sync-file current-file-id file-id :components component-id undo-group)
|
||||||
(when (not current-file?)
|
(when (not current-file?)
|
||||||
(sync-file file-id file-id :components component-id undo-group))
|
(sync-file file-id file-id :components component-id undo-group))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue