mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix flows import and export on zip format
This commit is contained in:
parent
47bc9d8ef1
commit
534659cdc6
3 changed files with 5 additions and 2 deletions
|
@ -35,6 +35,7 @@
|
|||
- Fix problem with hover layers when hidden/blocked [Github #5074](https://github.com/penpot/penpot/issues/5074)
|
||||
- Fix problem with precision on boolean calculation [Taiga #8482](https://tree.taiga.io/project/penpot/issue/8482)
|
||||
- Fix problem when translating multiple path points [Github #4459](https://github.com/penpot/penpot/issues/4459)
|
||||
- Fix problem on importing (and exporting) files with flows [Taiga #8914](https://tree.taiga.io/project/penpot/issue/8914)
|
||||
|
||||
## 2.2.1
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
(mf/defc export-flows
|
||||
[{:keys [flows]}]
|
||||
[:> "penpot:flows" #js {}
|
||||
(for [{:keys [id name starting-frame]} flows]
|
||||
(for [{:keys [id name starting-frame]} (vals flows)]
|
||||
[:> "penpot:flow" #js {:id id
|
||||
:name name
|
||||
:starting-frame starting-frame}])])
|
||||
|
|
|
@ -458,8 +458,10 @@
|
|||
page-data (-> (parser/parse-page-data content)
|
||||
(assoc :name page-name)
|
||||
(assoc :id (resolve page-id)))
|
||||
|
||||
flows (->> (get page-data :flows)
|
||||
(update-vals #(update % :starting-frame resolve))
|
||||
(map #(update % :starting-frame resolve))
|
||||
(d/index-by :id)
|
||||
(not-empty))
|
||||
|
||||
guides (-> (get page-data :guides)
|
||||
|
|
Loading…
Add table
Reference in a new issue