From aaaf8c052ea73fc097751ab5ad3bf20f79fd1f94 Mon Sep 17 00:00:00 2001 From: Anders Gustafsson <34234789+anders-photowall@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:04:53 +0200 Subject: [PATCH] 3112 - lowercase facet orientation values (#150) --- src/resolvers/products-resolver.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resolvers/products-resolver.ts b/src/resolvers/products-resolver.ts index 15701d2..a35fc8c 100644 --- a/src/resolvers/products-resolver.ts +++ b/src/resolvers/products-resolver.ts @@ -78,7 +78,10 @@ const Product = { return [ { attribute: 'color', values: colors }, - { attribute: 'orientation', values: orientations }, + { + attribute: 'orientation', + values: orientations.map((value) => value.toLowerCase()), + }, { attribute: 'type', values: types }, ]; },