Fix TS compile error

This commit is contained in:
Nathan Sobo 2022-04-01 08:25:58 -06:00
parent cea3ac6217
commit 99738db8a5

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 {