Skip to content

Commit

Permalink
docs: fix response code snippet in api reference (#8689)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Aug 21, 2024
1 parent 9734ad1 commit 2f01669
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ const TagsOperationCodeSectionResponsesSample = ({
</select>
)}
{selectedExample && (
<CodeBlock
source={selectedExample.content}
lang={getLanguageFromMedia(Object.keys(response.content)[0])}
collapsed={true}
className="mt-2 mb-0"
/>
<div className="mt-2">
<CodeBlock
source={selectedExample.content}
lang={getLanguageFromMedia(Object.keys(response.content)[0])}
collapsed={true}
className="mb-0"
/>
</div>
)}
{!selectedExample && <>Empty Response</>}
</>
Expand Down

0 comments on commit 2f01669

Please sign in to comment.