Skip to content

Commit

Permalink
fix(headless): make props optional for instant products definition (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprudhomme authored Nov 26, 2024
1 parent 0be153a commit 505f138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface InstantProductsDefinition
* @internal
*/
export function defineInstantProducts(
props: InstantProductsProps
props: InstantProductsProps = {options: {}}
): InstantProductsDefinition {
return {
listing: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
standaloneSearchBox: defineStandaloneSearchBox({
options: {redirectionUrl: '/search'},
}),
instantProducts: defineInstantProducts({options: {}}),
instantProducts: defineInstantProducts(),
pagination: definePagination({options: {pageSize: 9}}),
sort: defineSort(),
productView: defineProductView(),
Expand Down

0 comments on commit 505f138

Please sign in to comment.