🐛 Fix problem with root frame parent reference

This commit is contained in:
alonso.torres 2025-02-05 15:43:29 +01:00 committed by Andrey Antukh
parent 66076f1332
commit 7aa1237833
2 changed files with 5 additions and 3 deletions

View file

@ -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