Skip to content

Commit

Permalink
chore: pass layout as variant to collection client
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Dec 10, 2024
1 parent 4e643af commit 55846d5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ const CollectionLayout = ({
ScriptComponent={ScriptComponent}
>
<CollectionClient
page={page}
// NOTE: we pass in variant here because
// the collection page itself doesn't really exist
// and studio can only communicate to our collection
// via the `layout`
page={{ ...page, variant: layout }}
breadcrumb={breadcrumb}
items={processedItems}
filters={getAvailableFilters(processedItems)}
Expand Down

0 comments on commit 55846d5

Please sign in to comment.