Fix TS compile error
This commit is contained in:
parent
cea3ac6217
commit
99738db8a5
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export function text(
|
||||||
underline?: boolean;
|
underline?: boolean;
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
const sizeKey = properties.size || fontFamily === "sans" ? "sm" : "md";
|
const sizeKey = properties?.size || fontFamily === "sans" ? "sm" : "md";
|
||||||
const size = core.fontSize[sizeKey].value;
|
const size = core.fontSize[sizeKey].value;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue