0
Fork 0
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:
alonso.torres 2020-12-15 20:13:12 +01:00
parent f4157ba0e5
commit 53b5d78cdc

View file

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