mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
🐛 Fixes infinite loop when nil entry in objects
This commit is contained in:
parent
f4157ba0e5
commit
53b5d78cdc
1 changed files with 3 additions and 2 deletions
|
@ -193,9 +193,10 @@
|
|||
[objects]
|
||||
(let [root (get objects uuid/zero)
|
||||
loopfn (fn loopfn [ids]
|
||||
(let [obj (get objects (first ids))]
|
||||
(let [id (first ids)
|
||||
obj (get objects id)]
|
||||
(cond
|
||||
(nil? obj)
|
||||
(or (nil? id) (nil? obj))
|
||||
nil
|
||||
|
||||
(= :frame (:type obj))
|
||||
|
|
Loading…
Add table
Reference in a new issue