Fix productList references

This commit is contained in:
KokkieH 2024-09-11 15:41:35 +02:00
parent e51e2d2b0a
commit a73326d0a0
1 changed files with 4 additions and 3 deletions

View File

@ -160,13 +160,13 @@ export default function Content(): JSX.Element {
if ( query.term ) {
setSearchResultsCount( {
extensions: productList.filter(
extensions: productList.products.filter(
( p ) => p.type === 'extension'
).length,
themes: productList.filter(
themes: productList.products.filter(
( p ) => p.type === 'theme'
).length,
'business-services': productList.filter(
'business-services': productList.products.filter(
( p ) => p.type === 'business-service'
).length,
} );
@ -202,6 +202,7 @@ export default function Content(): JSX.Element {
setIsLoading,
query?.section,
page,
setSearchResultsCount,
] );
const getProductType = ( tab: string ): ProductType => {