We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e8246 commit 4e54c25Copy full SHA for 4e54c25
1 file changed
playground/src/components/canvas/CanvasStage.tsx
@@ -69,7 +69,11 @@ export function CanvasStage({ onReady }: CanvasStageProps) {
69
if (disposed) return;
70
71
const fontPreloads = sceneSeedRef.current.flatMap((el) => {
72
- if (el.type !== 'text' || typeof el.fontFamily !== 'string' || typeof el.fontUrl !== 'string') {
+ if (
73
+ el.type !== 'text' ||
74
+ typeof el.fontFamily !== 'string' ||
75
+ typeof el.fontUrl !== 'string'
76
+ ) {
77
return [];
78
}
79
if (canvas.fonts.isLoaded(el.fontFamily)) return [];
0 commit comments