Skip to content

Commit

Permalink
Added check against restoring an invalid cached options
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Sep 13, 2016
1 parent 5d781bc commit 1772388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const Async = React.createClass({
return this.resetState();
}
let cacheResult = getFromCache(this.state.cache, input);
if (cacheResult) {
if (Array.isArray(cacheResult)) {
return this.setState({
options: cacheResult.options,
});
Expand Down

0 comments on commit 1772388

Please sign in to comment.