Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix variables name
Krzysztof Białogłowicz9cb8a8ff2efb
diff --git a/saleor/static/js/components/CategoryPage.js b/saleor/static/js/components/CategoryPage.jsindex ce9124059b..51bffdb415 100644--- a/saleor/static/js/components/CategoryPage.js+++ b/saleor/static/js/components/CategoryPage.js@@ -152,7 +152,7 @@ class CategoryPage extends Component {<ProductListonLoadMore={this.incrementProductsCount}products={category.products}- sortingValue={variables.sortBy}+ sortedValue={variables.sortBy}setSorting={this.setSorting}/></div>diff --git a/saleor/static/js/components/ProductList.js b/saleor/static/js/components/ProductList.jsindex abc0629f8f..607e20c906 100644--- a/saleor/static/js/components/ProductList.js+++ b/saleor/static/js/components/ProductList.js@@ -9,7 +9,7 @@ class ProductList extends Component {static propTypes = {onLoadMore: PropTypes.func.isRequired,products: PropTypes.object,- sortingValue: PropTypes.string,+ sortedValue: PropTypes.string,setSorting: PropTypes.func};@@ -20,7 +20,7 @@ class ProductList extends Component {const { edges, pageInfo: { hasNextPage } } = this.props.products;return (<div>- <SortBy sortingValue={this.props.sortingValue} setSorting={this.setSorting} />+ <SortBy sortedValue={this.props.sortedValue} setSorting={this.setSorting} /><div>{edges && (edges.map((edge, i) => (<ProductItem key={i} product={edge.node} />diff --git a/saleor/static/js/components/SortBy.js b/saleor/static/js/components/SortBy.jsindex aefaaa3089..a5c64ae591 100644--- a/saleor/static/js/components/SortBy.js+++ b/saleor/static/js/components/SortBy.js@@ -11,7 +11,7 @@ export default class sortBy extends Component {static propTypes = {setSorting: PropTypes.func,- sortingValue: PropTypes.string+ sortedValue: PropTypes.string}setSorting = (event) => {@@ -26,12 +26,12 @@ export default class sortBy extends Component {}render() {- const { sortingValue } = this.props;+ const { sortedValue } = this.props;const { visibility } = this.state;return (<div className="sort-by"><button className="btn btn-link" onClick={this.changeVisibility}>- <span>Sort by: <strong>{sortingValue}</strong></span>+ <span>Sort by: <strong>{sortedValue}</strong></span></button>{visibility ? (<ul className="sort-list">