diff --git a/CHANGES.md b/CHANGES.md index 0264dbe4c..000c41513 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -58,6 +58,7 @@ is a number of cores) - Fix problem in plugins with zoomIntoView [Plugins #189](https://github.com/penpot/penpot-plugins/issues/189) - Fix problem in plugins with renaming components [Taiga #10060](https://tree.taiga.io/project/penpot/issue/10060) - Added upload svg with images method [#5489](https://github.com/penpot/penpot/issues/5489) +- Fix problem with root frame parent reference [Taiga #9437](https://tree.taiga.io/project/penpot/issue/9437) ## 2.4.3 diff --git a/frontend/src/app/plugins/shape.cljs b/frontend/src/app/plugins/shape.cljs index e23917d13..687d741c5 100644 --- a/frontend/src/app/plugins/shape.cljs +++ b/frontend/src/app/plugins/shape.cljs @@ -515,9 +515,10 @@ ;; not enumerable so there are no infinite loops :enumerable false :get (fn [self] - (let [shape (u/proxy->shape self) - parent-id (:parent-id shape)] - (shape-proxy plugin-id (obj/get self "$file") (obj/get self "$page") parent-id)))} + (let [shape (u/proxy->shape self)] + (when-not (cfh/root? shape) + (let [parent-id (:parent-id shape)] + (shape-proxy plugin-id (obj/get self "$file") (obj/get self "$page") parent-id)))))} :parentX {:this true