diff --git a/pages/search.tsx b/pages/search.tsx index 78f784572..a52c13f05 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -75,7 +75,7 @@ export default function Search({ const { data } = useSearch({ search: typeof q === 'string' ? q : '', - categoryId: activeCategory?.entityId, + categoryId: activeCategory?.id, brandId: (activeBrand as any)?.entityId, sort: typeof sort === 'string' ? sort : '', }) @@ -164,8 +164,7 @@ export default function Search({ className={cn( 'block text-sm leading-5 text-gray-700 hover:bg-gray-100 lg:hover:bg-transparent hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900', { - underline: - activeCategory?.entityId === cat.entityId, + underline: activeCategory?.id === cat.id, } )} > diff --git a/tsconfig.json b/tsconfig.json index 9e712fb18..1a6c28831 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,8 +22,8 @@ "@components/*": ["components/*"], "@commerce": ["framework/commerce"], "@commerce/*": ["framework/commerce/*"], - "@framework": ["framework/bigcommerce"], - "@framework/*": ["framework/bigcommerce/*"] + "@framework": ["framework/vendure"], + "@framework/*": ["framework/vendure/*"] } }, "include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],