Revert "🐛 Fix workspace hot reload race condtion (#5851)"

This reverts commit 5d56d28cb6.
This commit is contained in:
Andrey Antukh
2025-02-14 10:02:05 +01:00
parent af93325fd9
commit 8139ee3ef9
6 changed files with 51 additions and 42 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 (:id file) target-page-id))
[(when target-page-id (dw/initialize-page target-page-id))
(dws/select-shape target-container-id)
(dw/paste-shapes pdata)
(when target-page-id (dw/initialize-page (:id file) (:id page)))])))
(when target-page-id (dw/initialize-page (:id page)))])))
(defn- sync-file [file]
(map (fn [component-tag]