From 391b859948b4315a5a8b2cb0a25d2e8e0a1b893b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 20 Nov 2023 15:59:04 +0100 Subject: [PATCH] :bug: Preserve path when migrating graphics and add them in a specific group --- backend/src/app/features/components_v2.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/app/features/components_v2.clj b/backend/src/app/features/components_v2.clj index 2036ab627..d7dd6d140 100644 --- a/backend/src/app/features/components_v2.clj +++ b/backend/src/app/features/components_v2.clj @@ -553,6 +553,10 @@ (create-shapes-for-svg mobj file-id (:objects page) position) (create-shapes-for-bitmap mobj position)) + shape (assoc shape :name (-> "Graphics" + (cph/merge-path-item (:path mobj)) + (cph/merge-path-item (:name mobj)))) + changes (-> (fcb/empty-changes nil) (fcb/set-save-undo? false)