From 75e7cfb69e7ada81a0838880e5658005bb7697db Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 27 Nov 2024 11:15:58 +0100 Subject: [PATCH] :bug: Fix regression with component thumbnails --- frontend/src/app/main/data/workspace/libraries.cljs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 5f4c56aa9..982c56c9d 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -881,6 +881,12 @@ (rx/of (dwu/start-undo-transaction undo-id) (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) (when (not current-file?) (sync-file file-id file-id :components component-id undo-group))