From c369f2149faefc8ef6b8ae45dcf0d187c978e5ce Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Tue, 25 Jul 2023 10:08:53 -0500 Subject: [PATCH] Fixes category "latest arrivals" sort --- 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 } });