mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Add configuration to show product options when there's one variant available
This commit is contained in:
@@ -40,9 +40,9 @@ export const handler: SWRHook<SearchProductsHook> = {
|
||||
|
||||
const sort = input.sort ? { sort: nextToSpreeSortMap[input.sort] } : {}
|
||||
|
||||
const { data: spreeSuccessResponse } = await fetch<
|
||||
GraphQLFetcherResult<IProducts>
|
||||
>({
|
||||
const {
|
||||
data: { data: spreeSuccessResponse },
|
||||
} = await fetch<GraphQLFetcherResult<{ data: IProducts }>>({
|
||||
variables: {
|
||||
methodPath: 'products.list',
|
||||
arguments: [
|
||||
|
Reference in New Issue
Block a user