From 4c5991514a2282a26b27e45852df75d72cb2a3ed Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 22 Jun 2026 15:36:02 +0200 Subject: [PATCH] :bug: Fix syntax issues introduced in prev commit --- frontend/src/app/main/ui/shapes/export.cljs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/export.cljs b/frontend/src/app/main/ui/shapes/export.cljs index 649d5b5bb9..46c9856ef6 100644 --- a/frontend/src/app/main/ui/shapes/export.cljs +++ b/frontend/src/app/main/ui/shapes/export.cljs @@ -25,18 +25,21 @@ (mf/create-context false)) (mf/defc render-xml* - [{{:keys [tag attrs content] :as node} :xml}] - + [{:keys [xml]}] (cond - (map? node) - (let [props (-> (csvg/attrs->props attrs) + (map? xml) + (let [{:keys [tag attrs content]} + xml + + props (-> (csvg/attrs->props attrs) (json/->js :key-fn name))] + [:> (d/name tag) props (for [child content] [:> render-xml* {:xml child :key (swap! internal-counter inc)}])]) - (string? node) - node + (string? xml) + xml :else nil))