Skip to content

Commit

Permalink
Merge 7a62635 into 76987be
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfidelis committed Nov 22, 2019
2 parents 76987be + 7a62635 commit cbbf380
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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]
### Fixed
- Stringify collection and category args passed to graphql query.

## [1.33.1] - 2019-11-19
### Added
Expand Down
8 changes: 5 additions & 3 deletions react/Shelf.js
Expand Up @@ -119,9 +119,11 @@ const options = {
}) => ({
ssr: true,
variables: {
category,
...(category != null ? {
category: category.toString(),
} : {}),
...(collection != null ? {
collection,
collection: collection.toString(),
} : {}),
specificationFilters: specificationFilters.map(parseFilters),
orderBy,
Expand Down Expand Up @@ -167,7 +169,7 @@ EnhancedShelf.getSchema = props => {
},
collection: {
title: 'admin/editor.shelf.collection.title',
type: 'number',
type: 'string',
isLayout: false,
},
orderBy: {
Expand Down

0 comments on commit cbbf380

Please sign in to comment.