Skip to content

Commit

Permalink
fix missing key error
Browse files Browse the repository at this point in the history
  • Loading branch information
NaridaL committed Apr 13, 2020
1 parent 5126be8 commit 4e7dbd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zedd-app/src/components/AppBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ export const AppBody = observer(
</Tooltip>
</ButtonGroup>
{state.links.map(([k, link]) => (
<Button size='large' variant='contained' onClick={() => shell.openExternal(link)}>
<Button
size='large'
variant='contained'
onClick={() => shell.openExternal(link)}
key={k}
>
{k}
</Button>
))}
Expand Down

0 comments on commit 4e7dbd5

Please sign in to comment.