From 994d08b4792bf29806df0598edeebfd7cb282f87 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 29 Jan 2024 16:43:13 +0100 Subject: [PATCH] :bug: Fix problem refreshing layouts --- common/src/app/common/geom/shapes/tree_seq.cljc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/tree_seq.cljc b/common/src/app/common/geom/shapes/tree_seq.cljc index 37fa09543..b846a2129 100644 --- a/common/src/app/common/geom/shapes/tree_seq.cljc +++ b/common/src/app/common/geom/shapes/tree_seq.cljc @@ -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 %))))