Skip to content

Commit

Permalink
🐛 dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien JUIF committed Jun 26, 2017
1 parent dbb7146 commit a66116b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trampss-redux-data-store",
"version": "3.2.0",
"version": "3.2.1",
"main": "index.js",
"license": "MIT",
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion src/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const get = path => prefix => keys => (state) => {

export const getBy = path => prefix => (propertyPath, values) => (state) => {
const data = getAsArray(path)(prefix)(state)
if (!data) return []
if (Array.isArray(values)) return data.filter(d => values.includes(at(d, propertyPath)[0]))
return data.filter(d => values === at(d, propertyPath)[0])
}

0 comments on commit a66116b

Please sign in to comment.