Skip to content

Commit ba9c63a

Browse files
committed
Add symbol issue
1 parent a1cc58e commit ba9c63a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export class Element {
212212

213213
return formatSvg(value, dep)
214214
}
215+
215216
const originProps = await this.getProps()
216217
const mergedProps = { ...originProps, ...this.additionalProps }
217218
const children = this.getChildren()

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export async function propsToPropsWithTypography(
9393
const ret: Record<string, string> = { ...props }
9494
delete ret['w']
9595
delete ret['h']
96-
if (textStyleId) {
96+
if (typeof textStyleId === 'string') {
9797
const style = await figma.getStyleByIdAsync(textStyleId as string)
9898
if (style) {
9999
const split = style.name.split('/')

0 commit comments

Comments
 (0)