Skip to content

Commit

Permalink
chore(NavHeaderBar): add missing key to divider
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Nov 20, 2014
1 parent c8e1870 commit 7c9baa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/scripts/NavHeaderBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ module.exports = React.createClass({
</div>
</nav>;

function actionToMenuItem (action) {
function actionToMenuItem (action, index) {
var classSet = {};
if (false === action) {
return <li className="divider"></li>;
return <li key={`divider_${index}`} className="divider"></li>;
} else {
classSet.active = activeActionKey === action.key;

Expand Down

0 comments on commit 7c9baa7

Please sign in to comment.