ahoym / redesert

Work in Progress - Opinionated HOFs for auto-generating REST API consuming redux logic
MIT License
3 stars 1 forks source link

fix (base selectors): Add existence check for getIs*ing non-existent entities #21

Closed ahoym closed 6 years ago

ahoym commented 6 years ago

Context

The getIs*ing base selectors would error if the single entity in question didn't exist. This adds an existence check, and returns undefined if the entity is undefined

Additional Changes

Tasks

codeclimate[bot] commented 6 years ago

Code Climate has analyzed commit 28325768 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 97.5% (0.0% change).

View more on Code Climate.