0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Do not copy the atribute use-for-thumbnail on frame duplicate

https://tree.taiga.io/project/penpot/issue/3362
This commit is contained in:
Pablo Alba 2022-05-10 13:23:04 +02:00
parent 0c26dad3b2
commit c06042c91b
2 changed files with 5 additions and 1 deletions

View file

@ -277,7 +277,10 @@
page (get-in state [:workspace-data :pages-index page-id])
name (dwc/generate-unique-name unames (:name page))
page (-> page (assoc :name name :id id))
no_thumbnails_objects (->> (:objects page)
(d/mapm (fn [_ val] (dissoc val :use-for-thumbnail?))))
page (-> page (assoc :name name :id id :objects no_thumbnails_objects))
changes (-> (pcb/empty-changes it)
(pcb/add-page id page))]

View file

@ -324,6 +324,7 @@
:name frame-name
:frame-id uuid/zero
:shapes [])
(dissoc :use-for-thumbnail?)
(geom/move delta)
(d/update-when :interactions #(cti/remap-interactions % ids-map objects)))