Skip to content

Commit

Permalink
refactor: add an operational chain instead of expressions check (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
syedzubeen committed Oct 7, 2023
1 parent e3a8088 commit 1b893a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/containers/Servers/Security.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export const Security: React.FunctionComponent<Props> = ({

let renderedSecurities;
if (
!security ||
!security.length ||
!security?.length ||
!securitySchemes ||
!Object.keys(securitySchemes).length
) {
Expand Down

0 comments on commit 1b893a4

Please sign in to comment.