Skip to content

Commit

Permalink
fix: add null check for schema type on request (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
marclave committed Jun 25, 2024
1 parent 4643bfa commit 48f0b1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const schemeOptions = computed<SecuritySchemeOption[]>(() =>
const scheme = securitySchemes[id]
// For OAuth2 add all flows
if (scheme.type === 'oauth2') {
if (scheme?.type === 'oauth2') {
return Object.keys(scheme.flows).map((flowKey) => ({
// Since ID's must be unique, we also store the uid and flowKey separately
id: `${id}${flowKey}`,
Expand Down

0 comments on commit 48f0b1d

Please sign in to comment.