mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Merge branch 'master' of https://github.com/vercel/commerce into nodejs-provider
This commit is contained in:
@@ -24,9 +24,8 @@ export async function getStaticProps({
|
||||
const pageItem = pages.find((p) => (p.url ? getSlug(p.url) === slug : false))
|
||||
const data =
|
||||
pageItem &&
|
||||
// TODO: Shopify - Fix this type
|
||||
(await commerce.getPage({
|
||||
variables: { id: pageItem.id! } as any,
|
||||
variables: { id: pageItem.id! },
|
||||
config,
|
||||
preview,
|
||||
}))
|
||||
|
@@ -73,10 +73,8 @@ export default function Search({
|
||||
|
||||
const { data } = useSearch({
|
||||
search: typeof q === 'string' ? q : '',
|
||||
// TODO: Shopify - Fix this type
|
||||
categoryId: activeCategory?.entityId as any,
|
||||
// TODO: Shopify - Fix this type
|
||||
brandId: (activeBrand as any)?.entityId,
|
||||
categoryId: activeCategory?.entityId,
|
||||
brandId: activeBrand?.entityId,
|
||||
sort: typeof sort === 'string' ? sort : '',
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user