From a56e7e383fefd24acadab5820682217a61a49efd Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 25 Jun 2024 15:09:38 +0200 Subject: [PATCH] :bug: Fix 'Detach instance' shortcut is not working --- CHANGES.md | 2 ++ frontend/src/app/main/data/workspace/libraries.cljs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 53f918038..f383730d3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -51,6 +51,8 @@ - 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) - 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 diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 81b064c49..a1beaf1b5 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -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))]