diff --git a/frontend/src/app/util/import/parser.cljs b/frontend/src/app/util/import/parser.cljs index 05995df32..347e10fc0 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