Skip to content

Commit 172ccc7

Browse files
committed
Fix TypeError: Cannot read properties of undefined (reading 'type')
Fixes N1ebieski#2
1 parent 69ce58e commit 172ccc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const analyzeParam = (
115115
const nextArg = item.arguments.children[1].children[0];
116116
let classArg: string | null = null;
117117

118-
if (nextArg.type === "array") {
118+
if (nextArg?.type === "array") {
119119
classArg = nextArg.children[0]?.value?.className;
120120
} else {
121121
classArg = nextArg?.className;

0 commit comments

Comments
 (0)