🐛 Fix workspace hot reload race condtion

This reverts commit 8139ee3ef9.
This commit is contained in:
Andrey Antukh 2025-02-14 15:40:01 +01:00 committed by Alonso Torres
parent 807b8d82e3
commit fe3fec7a50
6 changed files with 77 additions and 86 deletions

View file

@ -63,10 +63,10 @@
target-container-id (or target-container-id (:parent-id shape))]
(filter some?
[(when target-page-id (dw/initialize-page target-page-id))
[(when target-page-id (dw/initialize-page (:id file) target-page-id))
(dws/select-shape target-container-id)
(dw/paste-shapes pdata)
(when target-page-id (dw/initialize-page (:id page)))])))
(when target-page-id (dw/initialize-page (:id file) (:id page)))])))
(defn- sync-file [file]
(map (fn [component-tag]