From 7c36c76b0dcb47d44ae097de19023a46d745b0b1 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Wed, 5 Mar 2025 11:16:57 +0100 Subject: [PATCH] :bug: Fix duplicate page with component over frame --- CHANGES.md | 1 + frontend/src/app/main/data/workspace.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7458d22ced..67c7462948 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ - Avoid resizing on click [Taiga #10213](https://tree.taiga.io/project/penpot/issue/10213) - Hide horizontal scroll from dashboard sidebar [Taiga #10422](https://tree.taiga.io/project/penpot/issue/10422) - Fix cut and paste a copy a cmponent inside its parent [Taiga #10365](https://tree.taiga.io/project/penpot/us/10365) +- Fix duplicate page with component over frame [Taiga #8151](https://tree.taiga.io/project/penpot/issue/8151) and [Taiga #9698](https://tree.taiga.io/project/penpot/issue/9698) ## 2.5.2 diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 7766ab0a96..a22de092fd 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -559,7 +559,7 @@ fdata (gpt/point (:x shape) (:y shape)) true - {:keep-ids? true}) + {:keep-ids? true :force-frame-id (:frame-id shape)}) children (into {} (map (fn [shape] [(:id shape) shape]) new-shapes)) objs (assoc objs id new-shape)] (merge objs children)))