Skip to content

Commit 62f275c

Browse files
fix(settings): Fix type predicate for scopes filter
Use NonNullable<typeof v> instead of string since the array contains Scope (a string literal union), not plain string. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ecd9c91 commit 62f275c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/views/settings/account/apiNewToken.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function ApiNewToken() {
9090
data: {
9191
...data,
9292
scopes: permissionStateToList(permissions).filter(
93-
(v): v is string => v !== undefined
93+
(v): v is NonNullable<typeof v> => v !== undefined
9494
),
9595
},
9696
}),

0 commit comments

Comments
 (0)