mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 22:26:37 +02:00
🐛 Fix 'Detach instance' shortcut is not working
This commit is contained in:
parent
f786aff3fc
commit
a56e7e383f
2 changed files with 3 additions and 2 deletions
|
@ -615,7 +615,6 @@
|
|||
(let [page-id (:current-page-id state)
|
||||
objects (wsh/lookup-page-objects state page-id)
|
||||
file (wsh/get-local-file state)
|
||||
container (cfh/get-container file :page page-id)
|
||||
libraries (wsh/get-libraries state)
|
||||
selected (->> state
|
||||
(wsh/lookup-selected)
|
||||
|
@ -627,7 +626,7 @@
|
|||
changes (when can-detach?
|
||||
(reduce
|
||||
(fn [changes id]
|
||||
(cll/generate-detach-instance changes container libraries id))
|
||||
(cll/generate-detach-component changes id file page-id libraries))
|
||||
(pcb/empty-changes it)
|
||||
selected))]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue