From 44e8f0f5dd5a84c48a26e7675899052cb14d8971 Mon Sep 17 00:00:00 2001 From: Joao Fidelis Date: Thu, 16 Jul 2020 15:24:51 -0300 Subject: [PATCH] do product query with slug only --- CHANGELOG.md | 2 ++ react/ProductContext.js | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73726b45..c04c132d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Do product query with slug only. ## [2.99.1] - 2020-07-14 ### Fixed diff --git a/react/ProductContext.js b/react/ProductContext.js index d0e65dc9..62a72f41 100644 --- a/react/ProductContext.js +++ b/react/ProductContext.js @@ -126,10 +126,6 @@ const catalogOptions = { variables: { slug: props.params.slug, skipCategoryTree: true, - identifier: { - field: 'id', - value: props.params.id || '', - }, }, errorPolicy: 'all', }), @@ -140,10 +136,6 @@ const productBenefitsOptions = { options: props => ({ variables: { slug: props.params.slug, - identifier: { - field: 'id', - value: props.params.id || '', - }, }, errorPolicy: 'all', ssr: false, @@ -155,10 +147,6 @@ const categoryTreeOptions = { options: props => ({ variables: { slug: props.params.slug, - identifier: { - field: 'id', - value: props.params.id || '', - }, }, errorPolicy: 'all', ssr: false,