Skip to content

Commit

Permalink
fix: avoid undefined reference (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Rassinier authored and jmfrancois committed Jun 7, 2017
1 parent 9ce1469 commit c22c184
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class DatalistWidget extends React.Component {
initalItems: items,
items: suggestions,
itemIndex: null,
noMatch: value && !items.length,
noMatch: value && items && !items.length,
});
}

Expand Down

0 comments on commit c22c184

Please sign in to comment.