We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1cc58e commit ba9c63aCopy full SHA for ba9c63a
src/Element.ts
@@ -212,6 +212,7 @@ export class Element {
212
213
return formatSvg(value, dep)
214
}
215
+
216
const originProps = await this.getProps()
217
const mergedProps = { ...originProps, ...this.additionalProps }
218
const children = this.getChildren()
src/utils.ts
@@ -93,7 +93,7 @@ export async function propsToPropsWithTypography(
93
const ret: Record<string, string> = { ...props }
94
delete ret['w']
95
delete ret['h']
96
- if (textStyleId) {
+ if (typeof textStyleId === 'string') {
97
const style = await figma.getStyleByIdAsync(textStyleId as string)
98
if (style) {
99
const split = style.name.split('/')
0 commit comments