Skip to content

Commit

Permalink
Fix key warning (#6099)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored Jul 13, 2021
1 parent f5c9695 commit 1f52a8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ class MyDocument extends Document {
styles: (
<React.Fragment>
{initialProps.styles}
{data!.styles.map(data => (
{data!.styles.map((data, i) => (
<style
key={i}
data-emotion={`${data.key} ${data.ids.join(' ')}`}
dangerouslySetInnerHTML={{ __html: data.css }}
/>
Expand Down

1 comment on commit 1f52a8a

@vercel
Copy link

@vercel vercel bot commented on 1f52a8a Jul 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.