Skip to content

Commit 9f4d340

Browse files
cmwintmichaelwolo
authored andcommitted
add key prop to fix error with multiple pdf pages (#107)
1 parent 79f5df4 commit 9f4d340

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/drivers/pdf-viewer.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export default class PDFDriver extends React.Component {
126126
const pages = Array.apply(null, { length: pdf.numPages });
127127
return pages.map((v, i) => (
128128
(<PDFPage
129+
key={`page-${index}`}
129130
index={i + 1}
130131
pdf={pdf}
131132
containerWidth={containerWidth}

0 commit comments

Comments
 (0)