mirror of
https://github.com/penpot/penpot.git
synced 2025-06-18 09:41: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
|
@ -51,6 +51,8 @@
|
||||||
- Removing Underline and Strikethrough Affects the Previous Text Object [Taiga #8103](https://tree.taiga.io/project/penpot/issue/8103)
|
- Removing Underline and Strikethrough Affects the Previous Text Object [Taiga #8103](https://tree.taiga.io/project/penpot/issue/8103)
|
||||||
- Color library loses association with shapes when exporting/importing the document [Taiga #8132](https://tree.taiga.io/project/penpot/issue/8132)
|
- Color library loses association with shapes when exporting/importing the document [Taiga #8132](https://tree.taiga.io/project/penpot/issue/8132)
|
||||||
- Fix can't collapse groups when searching in the assets tab [Taiga #8125](https://tree.taiga.io/project/penpot/issue/8125)
|
- Fix can't collapse groups when searching in the assets tab [Taiga #8125](https://tree.taiga.io/project/penpot/issue/8125)
|
||||||
|
- Fix 'Detach instance' shortcut is not working [Taiga #8102](https://tree.taiga.io/project/penpot/issue/8102)
|
||||||
|
|
||||||
|
|
||||||
## 2.0.3
|
## 2.0.3
|
||||||
|
|
||||||
|
|
|
@ -615,7 +615,6 @@
|
||||||
(let [page-id (:current-page-id state)
|
(let [page-id (:current-page-id state)
|
||||||
objects (wsh/lookup-page-objects state page-id)
|
objects (wsh/lookup-page-objects state page-id)
|
||||||
file (wsh/get-local-file state)
|
file (wsh/get-local-file state)
|
||||||
container (cfh/get-container file :page page-id)
|
|
||||||
libraries (wsh/get-libraries state)
|
libraries (wsh/get-libraries state)
|
||||||
selected (->> state
|
selected (->> state
|
||||||
(wsh/lookup-selected)
|
(wsh/lookup-selected)
|
||||||
|
@ -627,7 +626,7 @@
|
||||||
changes (when can-detach?
|
changes (when can-detach?
|
||||||
(reduce
|
(reduce
|
||||||
(fn [changes id]
|
(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)
|
(pcb/empty-changes it)
|
||||||
selected))]
|
selected))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue