Fix productList references
This commit is contained in:
parent
e51e2d2b0a
commit
a73326d0a0
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue