🐛 Fix components texts not displayed in assets panel

This commit is contained in:
Alejandro Alonso 2023-03-03 13:31:32 +01:00 committed by Alonso Torres
parent e8027d3316
commit 9e35229ebd
4 changed files with 13 additions and 6 deletions

View file

@ -287,7 +287,6 @@
:fill "none"}
[:& shape-wrapper {:shape frame}]]]))
;; Component for rendering a thumbnail of a single componenent. Mainly
;; used to render thumbnails on assets panel.
(mf/defc component-svg
@ -334,7 +333,8 @@
:fill "none"}
[:> shape-container {:shape root-shape}
[:& root-shape-wrapper {:shape root-shape :view-box vbox}]]]))
[:& (mf/provider muc/is-component?) {:value true}
[:& root-shape-wrapper {:shape root-shape :view-box vbox}]]]]))
(mf/defc object-svg
{::mf/wrap [mf/memo]}
@ -468,7 +468,7 @@
(let [texts (->> objects
(vals)
(filterv #(= (:type %) :text))
(mapv :content)) ]
(mapv :content))]
(->> (rx/from texts)
(rx/map fonts/get-content-fonts)