mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 20:51:42 +02:00
🐛 Fix opening pen with shortcut multiple times breaks toolbar
This commit is contained in:
parent
4aa1bb7246
commit
1a77c1fe36
2 changed files with 4 additions and 1 deletions
|
@ -324,7 +324,9 @@
|
|||
(let [id (dm/get-in state [:workspace-local :edition])
|
||||
objects (dsh/lookup-page-objects state)
|
||||
content (dm/get-in objects [id :content])]
|
||||
(update-in state [:workspace-local :edit-path id] assoc :old-content content)))
|
||||
(if content
|
||||
(update-in state [:workspace-local :edit-path id] assoc :old-content content)
|
||||
state)))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ state stream]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue