Skip to content

Commit

Permalink
Merge 13e5f0e into 4190d4d
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Nov 22, 2019
2 parents 4190d4d + 13e5f0e commit 94d0744
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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
- Forces hideUnavailableItems to be a boolean value

## [1.33.2] - 2019-11-22
### Fixed
Expand Down
6 changes: 5 additions & 1 deletion react/Shelf.js
Expand Up @@ -107,6 +107,10 @@ Shelf.propTypes = {

const parseFilters = ({id, value}) => `specificationFilter_${id}:${value}`

const toBoolean = (x) => typeof x === 'boolean'
? x
: x === "true"

const options = {
options: ({
category,
Expand All @@ -129,7 +133,7 @@ const options = {
orderBy,
from: 0,
to: maxItems - 1,
hideUnavailableItems,
hideUnavailableItems: toBoolean(hideUnavailableItems),
skusFilter,
},
}),
Expand Down

0 comments on commit 94d0744

Please sign in to comment.