mirror of
https://github.com/penpot/penpot.git
synced 2025-06-29 00:06:59 +02: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
|
@ -246,7 +246,7 @@
|
|||
(ptk/reify ::fetch-bundle
|
||||
ptk/WatchEvent
|
||||
(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 :project {:id project-id})
|
||||
(rp/query :file-libraries {:file-id file-id}))
|
||||
|
|
|
@ -82,9 +82,9 @@
|
|||
[id params]
|
||||
(send-query! id params))
|
||||
|
||||
(defmethod query :file
|
||||
[id params]
|
||||
(send-query! id params {:raw-transit? true}))
|
||||
(defmethod query :file-raw
|
||||
[_id params]
|
||||
(send-query! :file params {:raw-transit? true}))
|
||||
|
||||
(defmethod mutation :default
|
||||
[id params]
|
||||
|
|
|
@ -344,7 +344,13 @@
|
|||
(assoc :id (resolve page-id)))
|
||||
flows (->> (get-in page-data [:options :flows])
|
||||
(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))
|
||||
|
||||
;; Preprocess nodes to parallel upload the images. Store the result in a table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue