mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 00:01:51 -05:00
Merge pull request #1880 from penpot/palba-no-copy-use-for-thumbnail-on-duplicate
🐛 Do not copy the atribute use-for-thumbnail on frame duplicate
This commit is contained in:
commit
22193635d6
2 changed files with 5 additions and 1 deletions
|
@ -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))]
|
||||
|
|
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue