From 491748af9f1b7fe690ebbdcdb2dae8550bddd3ca Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 15 Mar 2022 09:46:17 +0100 Subject: [PATCH] :bug: Fix problem with import old files --- frontend/src/app/util/import/parser.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/import/parser.cljs b/frontend/src/app/util/import/parser.cljs index 05995df32b..347e10fc0b 100644 --- a/frontend/src/app/util/import/parser.cljs +++ b/frontend/src/app/util/import/parser.cljs @@ -216,7 +216,8 @@ (let [;; The nodes with the "frame-background" class can have some anidation depending on the strokes they have g-nodes (find-all-nodes node :g) defs-nodes (flatten (map #(find-all-nodes % :defs) g-nodes)) - rect-nodes (flatten [(map #(find-all-nodes % #{:rect :path}) defs-nodes) + rect-nodes (flatten [[(find-all-nodes node :rect)] + (map #(find-all-nodes % #{:rect :path}) defs-nodes) (map #(find-all-nodes % #{:rect :path}) g-nodes)]) svg-node (d/seek #(= "frame-background" (get-in % [:attrs :class])) rect-nodes)] (merge (add-attrs {} (:attrs svg-node)) node-attrs)) @@ -567,7 +568,6 @@ (defn parse-guide-node [node] (let [attrs (-> node :attrs remove-penpot-prefix)] - (println attrs) (let [id (uuid/next)] [id {:id id