From 326f516138d1beaf39c621fde85d4835ed8c389c Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Tue, 25 Jul 2023 10:13:32 -0500 Subject: [PATCH] Fixes category "latest arrivals" sort (#1108) Co-authored-by: Lee Robinson --- lib/shopify/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index c2cc15aa2..64b5d24e8 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -289,7 +289,7 @@ export async function getCollectionProducts({ variables: { handle: collection, reverse, - sortKey + sortKey: sortKey === 'CREATED_AT' ? 'CREATED' : sortKey } });