mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 19:48:22 -05:00
🐛 Fix problem when export/importing guides attached to frame
This commit is contained in:
parent
9923268589
commit
c7e23c1b58
4 changed files with 12 additions and 5 deletions
|
@ -96,6 +96,7 @@
|
||||||
- Fix problem when changing group size with decimal values [Taiga #3203](https://tree.taiga.io/project/penpot/issue/3203)
|
- Fix problem when changing group size with decimal values [Taiga #3203](https://tree.taiga.io/project/penpot/issue/3203)
|
||||||
- Fix error when drawing curves with only one point [Taiga #3282](https://tree.taiga.io/project/penpot/issue/3282)
|
- Fix error when drawing curves with only one point [Taiga #3282](https://tree.taiga.io/project/penpot/issue/3282)
|
||||||
- Fix issue with paste ordering sometimes not being respected [Taiga #3268](https://tree.taiga.io/project/penpot/issue/3268)
|
- Fix issue with paste ordering sometimes not being respected [Taiga #3268](https://tree.taiga.io/project/penpot/issue/3268)
|
||||||
|
- Fix problem when export/importing guides attached to frame [#1838](https://github.com/penpot/penpot/issues/1838)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
|
@ -246,7 +246,7 @@
|
||||||
(ptk/reify ::fetch-bundle
|
(ptk/reify ::fetch-bundle
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
(->> (rx/zip (rp/query :file {:id file-id})
|
(->> (rx/zip (rp/query :file-raw {:id file-id})
|
||||||
(rp/query :team-users {:file-id file-id})
|
(rp/query :team-users {:file-id file-id})
|
||||||
(rp/query :project {:id project-id})
|
(rp/query :project {:id project-id})
|
||||||
(rp/query :file-libraries {:file-id file-id}))
|
(rp/query :file-libraries {:file-id file-id}))
|
||||||
|
|
|
@ -82,9 +82,9 @@
|
||||||
[id params]
|
[id params]
|
||||||
(send-query! id params))
|
(send-query! id params))
|
||||||
|
|
||||||
(defmethod query :file
|
(defmethod query :file-raw
|
||||||
[id params]
|
[_id params]
|
||||||
(send-query! id params {:raw-transit? true}))
|
(send-query! :file params {:raw-transit? true}))
|
||||||
|
|
||||||
(defmethod mutation :default
|
(defmethod mutation :default
|
||||||
[id params]
|
[id params]
|
||||||
|
|
|
@ -344,7 +344,13 @@
|
||||||
(assoc :id (resolve page-id)))
|
(assoc :id (resolve page-id)))
|
||||||
flows (->> (get-in page-data [:options :flows])
|
flows (->> (get-in page-data [:options :flows])
|
||||||
(mapv #(update % :starting-frame resolve)))
|
(mapv #(update % :starting-frame resolve)))
|
||||||
page-data (d/assoc-in-when page-data [:options :flows] flows)
|
|
||||||
|
guides (-> (get-in page-data [:options :guides])
|
||||||
|
(d/update-vals #(update % :frame-id resolve)))
|
||||||
|
|
||||||
|
page-data (-> page-data
|
||||||
|
(d/assoc-in-when [:options :flows] flows)
|
||||||
|
(d/assoc-in-when [:options :guides] guides))
|
||||||
file (-> file (fb/add-page page-data))
|
file (-> file (fb/add-page page-data))
|
||||||
|
|
||||||
;; Preprocess nodes to parallel upload the images. Store the result in a table
|
;; Preprocess nodes to parallel upload the images. Store the result in a table
|
||||||
|
|
Loading…
Add table
Reference in a new issue