Skip to content

Commit 315abfe

Browse files
committed
Fix ternary shenanigans 🤦
i'm a senior developer errybody
1 parent 58cc0c4 commit 315abfe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/page_template/page_template.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps> = ({
144144

145145
const innerPanelled = panelled ?? Boolean(sidebar.length > 0);
146146
const innerBordered = contentBorder ?? Boolean(sidebar.length > 0);
147-
const headerBottomBorder = bottomBorder ?? sidebar.length ? true : 'extended';
147+
const headerBottomBorder =
148+
bottomBorder ?? (sidebar.length ? true : 'extended');
148149

149150
const templateContext = useMemo(() => {
150151
return {

0 commit comments

Comments
 (0)