Skip to content

Commit

Permalink
[PR] use unique keys (#31)
Browse files Browse the repository at this point in the history
Use unique keys for page elements
  • Loading branch information
obfuscatedgenerated authored Jun 2, 2022
2 parents a19b52c + 998c73d commit ca5bc47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const Popup: React.SFC = () => {
book.pages.map((url, i, arr) => (
<Page
url={url}
key={url}
moveUp={i > 0 ? () => updatePageOrder(i, i - 1) : undefined}
moveDown={
i + 1 < arr.length ? () => updatePageOrder(i, i + 1) : undefined
Expand Down

0 comments on commit ca5bc47

Please sign in to comment.