mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fix build errors
This commit is contained in:
@@ -25,8 +25,7 @@ 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 getPage({ variables: { id: pageItem.id! } as any, config, preview }))
|
||||
(await getPage({ variables: { id: pageItem.id! }, config, preview }))
|
||||
const page = data?.page
|
||||
|
||||
if (!page) {
|
||||
|
@@ -75,9 +75,8 @@ export default function Search({
|
||||
|
||||
const { data } = useSearch({
|
||||
search: typeof q === 'string' ? q : '',
|
||||
// TODO: Shopify - Fix this type
|
||||
// @ts-ignore Swell - Fix this types
|
||||
categoryId: activeCategory?.entityId as any,
|
||||
// TODO: Shopify - Fix this type
|
||||
brandId: (activeBrand as any)?.entityId,
|
||||
sort: typeof sort === 'string' ? sort : '',
|
||||
})
|
||||
|
Reference in New Issue
Block a user