diff --git a/common/src/app/common/types/shape_tree.cljc b/common/src/app/common/types/shape_tree.cljc index e6a41b5d8..1968eb1ac 100644 --- a/common/src/app/common/types/shape_tree.cljc +++ b/common/src/app/common/types/shape_tree.cljc @@ -205,9 +205,8 @@ (defn all-frames-by-position [objects position] (->> (get-frames-ids objects) - (sort-z-index objects) - (filterv #(and position (gsh/has-point? (get objects %) position))))) - + (filter #(and position (gsh/has-point? (get objects %) position))) + (sort-z-index objects))) (defn top-nested-frame "Search for the top nested frame for positioning shapes when moving or creating.