mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 08:41:38 +02:00
🐛 Prevent ghost state on change from one file to other.
This commit is contained in:
parent
5fb0c5c312
commit
1d678acdd9
2 changed files with 19 additions and 41 deletions
|
@ -368,7 +368,9 @@
|
|||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(let [local (:workspace-local state)]
|
||||
(assoc-in state [:workspace-cache page-id] local)))))
|
||||
(-> state
|
||||
(assoc-in [:workspace-cache page-id] local)
|
||||
(update :workspace-data dissoc page-id))))))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue