mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 15:38:38 +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]
|
([objects id]
|
||||||
(is-direct-child-of-root? (get objects id)))
|
(is-direct-child-of-root? (get objects id)))
|
||||||
([shape]
|
([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?
|
(defn root-frame?
|
||||||
([objects id]
|
([objects id]
|
||||||
(root-frame? (get objects id)))
|
(if (= id uuid/zero)
|
||||||
|
false
|
||||||
|
(root-frame? (get objects id))))
|
||||||
([shape]
|
([shape]
|
||||||
(and (some? shape)
|
(and (some? shape)
|
||||||
|
(not= (dm/get-prop shape :id) uuid/zero)
|
||||||
(= (dm/get-prop shape :type) :frame)
|
(= (dm/get-prop shape :type) :frame)
|
||||||
(= (dm/get-prop shape :frame-id) uuid/zero))))
|
(= (dm/get-prop shape :frame-id) uuid/zero))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user