Skip to content

Commit

Permalink
Fix my-files example code (#2386)
Browse files Browse the repository at this point in the history
Example code gives React warning about unique "key" prop.
  • Loading branch information
tonilaukka authored and KyleAMathews committed Oct 10, 2017
1 parent 2bc8bf4 commit 7e5171d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial/part-four/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ export default ({ data }) => {
</tr>
</thead>
<tbody>
{data.allFile.edges.map(({ node }) =>
<tr>
{data.allFile.edges.map(({ node }, index) =>
<tr key={index}>
<td>
{node.relativePath}
</td>
Expand Down

0 comments on commit 7e5171d

Please sign in to comment.