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