Fix TS compile error

This commit is contained in:
Nathan Sobo 2022-04-01 08:25:58 -06:00 committed by Keith Simmons
parent 211c473d32
commit 70a783c8d1

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 {