diff --git a/components/Search.tsx b/components/Search.tsx index d3fd54884601..6627ff3fba49 100644 --- a/components/Search.tsx +++ b/components/Search.tsx @@ -339,7 +339,7 @@ function ShowSearchResults({ const versions = Array.from(latestVersions).map((version) => { return { title: allVersions[version].versionTitle, - version: version, + version, } }) diff --git a/components/guides/ArticleCards.tsx b/components/guides/ArticleCards.tsx index d39b26fd8a58..c22611ef40b8 100644 --- a/components/guides/ArticleCards.tsx +++ b/components/guides/ArticleCards.tsx @@ -50,7 +50,7 @@ export const ArticleCards = () => { const guides = isUserFiltering ? filteredResults : includeGuides || [] const types = Object.entries(guideTypes).map(([key, val]) => { - return { text: val, key: key } + return { text: val, key } }) as ItemInput[] types.unshift({ text: t('filters.all'), key: undefined }) diff --git a/components/landing/TableOfContents.tsx b/components/landing/TableOfContents.tsx index 3a08027062ae..8e434d0f9d42 100644 --- a/components/landing/TableOfContents.tsx +++ b/components/landing/TableOfContents.tsx @@ -66,7 +66,7 @@ export const TableOfContents = (props: Props) => { } : { key: href, - title: title, + title, renderItem: () => (