From bf4873c87beaa1c6b47c9bbeb59b7dd236dea525 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 17 Oct 2022 14:26:45 +0200 Subject: [PATCH 1/2] simplify 'items' in TableOfContents prop (#31683) --- components/landing/TableOfContents.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/landing/TableOfContents.tsx b/components/landing/TableOfContents.tsx index d1011c1f4a..05419deb0c 100644 --- a/components/landing/TableOfContents.tsx +++ b/components/landing/TableOfContents.tsx @@ -12,15 +12,13 @@ type Props = { export const TableOfContents = (props: Props) => { const { items, variant = 'expanded' } = props - const actionItems = (items || []).filter((item) => typeof item !== 'undefined') - return (