mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 08:11:30 -05:00
🐛 Fix crash in libraries view
This commit is contained in:
parent
eb0d499ddf
commit
e032736c27
1 changed files with 2 additions and 1 deletions
|
@ -292,6 +292,7 @@
|
||||||
(mf/defc component-svg
|
(mf/defc component-svg
|
||||||
{::mf/wrap [mf/memo #(mf/deferred % ts/idle-then-raf)]}
|
{::mf/wrap [mf/memo #(mf/deferred % ts/idle-then-raf)]}
|
||||||
[{:keys [objects root-shape zoom] :or {zoom 1} :as props}]
|
[{:keys [objects root-shape zoom] :or {zoom 1} :as props}]
|
||||||
|
(when root-shape
|
||||||
(let [root-shape-id (:id root-shape)
|
(let [root-shape-id (:id root-shape)
|
||||||
include-metadata? (mf/use-ctx export/include-metadata-ctx)
|
include-metadata? (mf/use-ctx export/include-metadata-ctx)
|
||||||
|
|
||||||
|
@ -334,7 +335,7 @@
|
||||||
|
|
||||||
[:> shape-container {:shape root-shape'}
|
[:> shape-container {:shape root-shape'}
|
||||||
[:& (mf/provider muc/is-component?) {:value true}
|
[:& (mf/provider muc/is-component?) {:value true}
|
||||||
[:& root-shape-wrapper {:shape root-shape' :view-box vbox}]]]]))
|
[:& root-shape-wrapper {:shape root-shape' :view-box vbox}]]]])))
|
||||||
|
|
||||||
(mf/defc object-svg
|
(mf/defc object-svg
|
||||||
{::mf/wrap [mf/memo]}
|
{::mf/wrap [mf/memo]}
|
||||||
|
|
Loading…
Add table
Reference in a new issue