mirror of
https://github.com/penpot/penpot.git
synced 2025-05-27 23:56:13 +02:00
🐛 Fix workspace hot reload race condtion (#5851)
Mainly ensure that all required paramers for workspace file and page bootstrap are always available from parameters and not taken from context
This commit is contained in:
parent
46d2359107
commit
5d56d28cb6
6 changed files with 42 additions and 51 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