Fix TS compile error

This commit is contained in:
Nathan Sobo
2022-04-04 12:13:59 -07:00
committed by Keith Simmons
parent 211c473d32
commit 70a783c8d1
+1 -1
View File
@@ -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 {