0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

🐛 Fix problem refreshing layouts

This commit is contained in:
alonso.torres 2024-01-29 16:43:13 +01:00
parent 051859969c
commit 994d08b479

View file

@ -17,7 +17,11 @@
[id objects]
(->> (tree-seq
#(d/not-empty? (dm/get-in objects [% :shapes]))
#(dm/get-in objects [% :shapes])
(fn [id]
(let [shape (get objects id)]
(cond->> (:shapes shape)
(and (ctl/flex-layout? shape) (ctl/reverse? shape))
(reverse))))
id)
(map #(get objects %))))