From 4b9e7fdb1595eb85742ca327ab21936d7189bbeb Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 29 Sep 2021 12:10:35 +0200 Subject: [PATCH] :bug: Fix problem with incorrect content --- common/src/app/common/geom/shapes/path.cljc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/geom/shapes/path.cljc b/common/src/app/common/geom/shapes/path.cljc index 4569a2cb97..fc3deb045d 100644 --- a/common/src/app/common/geom/shapes/path.cljc +++ b/common/src/app/common/geom/shapes/path.cljc @@ -376,7 +376,11 @@ (not (nil? c1x)) (set-tr :c1x :c1y) (not (nil? c2x)) (set-tr :c2x :c2y)))] - (mapv #(update % :params transform-params) content))) + (->> content + (mapv (fn [cmd] + (cond-> cmd + (map? cmd) + (update :params transform-params))))))) (defn transform-content [content transform]