mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 22:08:34 +02:00
🐛 Fix workspace hot reload race condtion
This reverts commit 8139ee3ef9
.
This commit is contained in:
parent
807b8d82e3
commit
fe3fec7a50
6 changed files with 77 additions and 86 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue