mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 18:37:23 +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
|
||||
[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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue