Skip to content

Commit

Permalink
Use file path for component key as more unique than component name (fix
Browse files Browse the repository at this point in the history
#33).
  • Loading branch information
sapegin committed Jul 18, 2016
1 parent ac523db commit 50458c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rsg-components/Components/Components.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class Components extends Component {
return components.map((component) => {
return (
<ComponentRenderer
key={component.name}
key={component.filepath}
highlightTheme={highlightTheme}
component={component}
sidebar={sidebar}
Expand Down

0 comments on commit 50458c7

Please sign in to comment.