🐛 Fix Restoring a variant from another file makes it overlap (#7448)

This commit is contained in:
Pablo Alba 2025-10-07 16:01:59 +02:00 committed by GitHub
parent 90bfae3ec1
commit 640894acd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -47,6 +47,7 @@
- Fix multi level library dependencies [Taiga #12155](https://tree.taiga.io/project/penpot/issue/12155) - Fix multi level library dependencies [Taiga #12155](https://tree.taiga.io/project/penpot/issue/12155)
- Fix component context menu options order in assets tab [Taiga #11941](https://tree.taiga.io/project/penpot/issue/11941) - Fix component context menu options order in assets tab [Taiga #11941](https://tree.taiga.io/project/penpot/issue/11941)
- Fix error updating library [Taiga #12218](https://tree.taiga.io/project/penpot/issue/12218) - Fix error updating library [Taiga #12218](https://tree.taiga.io/project/penpot/issue/12218)
- Fix Restoring a variant in another file makes it overlap the existing variant [Taiga #12049](https://tree.taiga.io/project/penpot/issue/12049)
## 2.10.1 (Unreleased) ## 2.10.1 (Unreleased)

View File

@ -710,11 +710,14 @@
(fn [ids] (fn [ids]
(let [parent-ids (when update-layout? (let [parent-ids (when update-layout?
(map #(-> (get objects %) :parent-id) ids))] (map #(-> (get objects %) :parent-id) ids))]
(rx/of (rx/concat
(dws/select-shapes ids) (rx/of
dwz/zoom-to-selected-shape (dws/select-shapes ids)
dwz/zoom-to-selected-shape)
(when update-layout? (when update-layout?
(ptk/data-event :layout/update {:ids parent-ids}))))) (->> (rx/of (ptk/data-event :layout/update {:ids parent-ids}))
;; Delay so the navigation can finish
(rx/delay 250))))))
redirect-to-page redirect-to-page
(fn [page-id ids] (fn [page-id ids]