mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 04:17:13 +02:00
🐛 Fix problem with root frame parent reference
This commit is contained in:
parent
66076f1332
commit
7aa1237833
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue