mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 21:37:19 +02:00
🐛 Fix render-frame when shape is nil
This commit is contained in:
parent
db149e9c09
commit
9c9bc8803d
1 changed files with 36 additions and 33 deletions
|
@ -538,6 +538,7 @@
|
||||||
|
|
||||||
(defn render-frame
|
(defn render-frame
|
||||||
[objects shape object-id]
|
[objects shape object-id]
|
||||||
|
(if (some? shape)
|
||||||
(let [shape-id (dm/get-prop shape :id)
|
(let [shape-id (dm/get-prop shape :id)
|
||||||
fonts (ff/shape->fonts shape objects)
|
fonts (ff/shape->fonts shape objects)
|
||||||
|
|
||||||
|
@ -576,4 +577,6 @@
|
||||||
:viewbox viewbox
|
:viewbox viewbox
|
||||||
:width fixed-width
|
:width fixed-width
|
||||||
:height fixed-height
|
:height fixed-height
|
||||||
:styles styles})))))
|
:styles styles}))))
|
||||||
|
(do (l/warn :msg "imposter shape is nil")
|
||||||
|
(rx/empty))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue