mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix unexpected exception on incorrect thumbnail gen of root shape
This commit is contained in:
parent
9e40b4551d
commit
5502f317ad
@ -32,13 +32,17 @@
|
||||
([objects id]
|
||||
(is-direct-child-of-root? (get objects id)))
|
||||
([shape]
|
||||
(and (some? shape) (= (dm/get-prop shape :frame-id) uuid/zero))))
|
||||
(and (some? shape)
|
||||
(= (dm/get-prop shape :frame-id) uuid/zero))))
|
||||
|
||||
(defn root-frame?
|
||||
([objects id]
|
||||
(root-frame? (get objects id)))
|
||||
(if (= id uuid/zero)
|
||||
false
|
||||
(root-frame? (get objects id))))
|
||||
([shape]
|
||||
(and (some? shape)
|
||||
(not= (dm/get-prop shape :id) uuid/zero)
|
||||
(= (dm/get-prop shape :type) :frame)
|
||||
(= (dm/get-prop shape :frame-id) uuid/zero))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user