Skip to content

Commit

Permalink
fix: multiple responses even if only one response status code (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava authored Feb 5, 2025
1 parent 5284730 commit 47803a9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ const UnmemoizedEndpointContentCodeSnippets: React.FC<
);

const errorSelector =
showErrors && Object.keys(examplesByStatusCode).length > 1 ? (
showErrors &&
Object.values(examplesByStatusCode).some(
(examples) => examples.length > 1
) ? (
<ErrorExampleSelect
examplesByStatusCode={examplesByStatusCode}
selectedExample={selectedExample}
Expand Down

0 comments on commit 47803a9

Please sign in to comment.