Skip to content

Commit

Permalink
Fix react warnings for empty placeholders in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Feb 10, 2016
1 parent 8ed0143 commit 5ec26ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/components/experiments/platforms/PlatformWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PlatformWizard extends React.Component {

if (children.length === 0) {
children = [(
<li className="list-empty">
<li key="empty" className="list-empty">
<i className={"fa fa-3x fa-users"}/>
<br/>
You have no platforms yet!<br/>
Expand Down
2 changes: 1 addition & 1 deletion src/js/core/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Loader extends React.Component {
};

children = [
React.createElement("div", {className: "loader"}, null)
React.createElement("div", {key: "loader", className: "loader"}, null)
]
}

Expand Down

0 comments on commit 5ec26ff

Please sign in to comment.