mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02: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]
|
[objects]
|
||||||
(let [root (get objects uuid/zero)
|
(let [root (get objects uuid/zero)
|
||||||
loopfn (fn loopfn [ids]
|
loopfn (fn loopfn [ids]
|
||||||
(let [obj (get objects (first ids))]
|
(let [id (first ids)
|
||||||
|
obj (get objects id)]
|
||||||
(cond
|
(cond
|
||||||
(nil? obj)
|
(or (nil? id) (nil? obj))
|
||||||
nil
|
nil
|
||||||
|
|
||||||
(= :frame (:type obj))
|
(= :frame (:type obj))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue