Skip to content

Commit 16dc774

Browse files
committed
up
1 parent fa73c7c commit 16dc774

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/generate-symbol-tsx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ export const generateSymbolTsx = (
7373
}
7474

7575
for (const text of schematicTexts) {
76-
const x = text.position.x ?? 0
77-
const y = text.position.y ?? 0
76+
const x = text.position?.x ?? 0
77+
const y = text.position?.y ?? 0
7878
const rawText = String(text.text ?? "")
7979
const escapedText = rawText.replace(/"/g, '\\"')
8080
const anchorAlignment = text.anchor ?? "center"

0 commit comments

Comments
 (0)