From f1884572450699d0f92d3d9527d2224da98c9d10 Mon Sep 17 00:00:00 2001 From: Bryant Sell Date: Mon, 22 Feb 2021 09:18:39 -0500 Subject: [PATCH] Add missing key prop --- src/components/drivers/pdf-viewer.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/drivers/pdf-viewer.jsx b/src/components/drivers/pdf-viewer.jsx index b471d186..f507afb5 100644 --- a/src/components/drivers/pdf-viewer.jsx +++ b/src/components/drivers/pdf-viewer.jsx @@ -60,14 +60,13 @@ export class PDFPage extends React.Component { } render() { - const { index } = this.props; return ( -
+
{this.props.disableVisibilityCheck ? this.canvas = node} width="670" height="870" /> : ( this.canvas = node} width="670" height="870" /> - ) + ) }
); @@ -127,6 +126,7 @@ export default class PDFDriver extends React.Component { const pages = Array.apply(null, { length: pdf.numPages }); return pages.map((v, i) => ( (