Skip to content

Commit

Permalink
remove headers if header list is empty (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Dec 10, 2023
1 parent b8b4bce commit 37918e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const UnmemoizedEndpointContentLeft: React.FC<EndpointContentLeft.Props> = ({
route={route}
/>
)}
{endpoint.headers != null && (
{endpoint.headers.length > 0 && (
<EndpointSection title="Headers" anchorIdParts={[...anchorIdParts, "headers"]} route={route}>
<div className="flex flex-col">
{endpoint.headers.map((header, index) => (
Expand Down

1 comment on commit 37918e1

@vercel
Copy link

@vercel vercel bot commented on 37918e1 Dec 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fern-dev – ./packages/ui/fe-bundle

fern-dev-buildwithfern.vercel.app
fern-dev-git-main-buildwithfern.vercel.app
app-dev.buildwithfern.com
devtest.buildwithfern.com

Please sign in to comment.