Skip to content

Commit fcc85ad

Browse files
committed
fix(collections): update collection to collections
1 parent 47837c6 commit fcc85ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function createObjects() {
171171
for (let k in data) {
172172
switch(k) {
173173
case 'customCollection':
174-
m.metadata()['collection'] = data[k];
174+
m.metadata()['collections'] = data[k];
175175
default:
176176
let snaked = changeCase.snakeCase(k);
177177
m.metadata()[snaked] = data[k];

test/fixtures/shopify-data/templates/layout.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<body>
77

88
<h1 class="hero__title">
9-
{{ collection | json }}
9+
{{ collections | json }}
1010
{{ customer_address | json }}
1111
</h1>
1212

0 commit comments

Comments
 (0)