🐛 Fix render-frame when shape is nil

This commit is contained in:
Aitor 2023-09-28 16:42:09 +02:00 committed by Andrés Moya
parent db149e9c09
commit 9c9bc8803d

View file

@ -538,6 +538,7 @@
(defn render-frame
[objects shape object-id]
(if (some? shape)
(let [shape-id (dm/get-prop shape :id)
fonts (ff/shape->fonts shape objects)
@ -576,4 +577,6 @@
:viewbox viewbox
:width fixed-width
:height fixed-height
:styles styles})))))
:styles styles}))))
(do (l/warn :msg "imposter shape is nil")
(rx/empty))))