From 10b270e488dac12bcd26c72afc46e9909704b9a5 Mon Sep 17 00:00:00 2001 From: Vinicius Carvalho Date: Sat, 12 Oct 2019 14:57:58 -0300 Subject: [PATCH] Update Viewer.js pdfInfo is not supported --- app/src/components/PDFViewer/components/Viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/PDFViewer/components/Viewer.js b/app/src/components/PDFViewer/components/Viewer.js index 7630c98..17c726c 100644 --- a/app/src/components/PDFViewer/components/Viewer.js +++ b/app/src/components/PDFViewer/components/Viewer.js @@ -9,7 +9,7 @@ import { Page } from './Page'; * - default usage is in ../PDFViewer.js **/ const Viewer = ({ pdf, ...props }) => { - const numPages = pdf ? pdf.pdfInfo.numPages : 0; + const numPages = pdf ? pdf.numPages : 0; if (pdf) { return (