Skip to content

Commit

Permalink
[mdn#11645] feat(sidebar-inner): enlarge the sidebar-inner element by…
Browse files Browse the repository at this point in the history
… removing the section when it is empty
  • Loading branch information
LcsGa committed Aug 18, 2024
1 parent 856405f commit 7952de8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/ui/organisms/placement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ export function SidePlacement() {
].filter(([_, v]) => Boolean(v))
);

return !placementData?.side ? (
<section className="place side"></section>
) : placementData.side.cta && placementData.side.heading ? (
return !placementData?.side ? null : placementData.side.cta &&
placementData.side.heading ? (
<PlacementInner
pong={placementData.side}
extraClassNames={["side", "new-side"]}
Expand Down

0 comments on commit 7952de8

Please sign in to comment.