Fix TS compile error

Nathan Sobo created

Change summary

styles/styleTree/components.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

styles/styleTree/components.ts 🔗

@@ -15,7 +15,7 @@ export function text(
     underline?: boolean;
   }
 ) {
-  const sizeKey = properties.size || fontFamily === "sans" ? "sm" : "md";
+  const sizeKey = properties?.size || fontFamily === "sans" ? "sm" : "md";
   const size = core.fontSize[sizeKey].value;
 
   return {