Skip to content

Commit

Permalink
Merge pull request JedWatson#1894 from SuhushinAS/patch-1
Browse files Browse the repository at this point in the history
fix bug, if wrote "hasOwnProperty"
  • Loading branch information
JedWatson authored Sep 13, 2017
2 parents 1c2f096 + 14068ca commit eef7e45
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 @@ -86,7 +86,7 @@ export default class Async extends Component {

if (
cache &&
cache.hasOwnProperty(inputValue)
Object.prototype.hasOwnProperty.call(cache, inputValue)
) {
this.setState({
options: cache[inputValue]
Expand Down

0 comments on commit eef7e45

Please sign in to comment.