@secondstaxorg/sscomp 2.0.91 → 2.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -34874,10 +34874,10 @@ reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/aja
34874
34874
  * For viewing PDF and image documents
34875
34875
  */
34876
34876
  const DocumentViewer = (props) => {
34877
- const {files,closeBtnFn,actionArea,labelOverrides,jumpTo} = props;
34877
+ const {files,closeBtnFn,actionArea,labelOverrides,jumpTo = 0} = props;
34878
34878
  const [numPages,setNumPages] = React$1.useState(1);
34879
34879
  const [currPage,setCurrPage] = React$1.useState(1);
34880
- const [currDoc,setCurrDoc] = React$1.useState(jumpTo || 0);
34880
+ const [currDoc,setCurrDoc] = React$1.useState(jumpTo);
34881
34881
  const [pdfDoc,setPdfDoc] = React$1.useState(null);
34882
34882
  const [showDoc,setShowDoc] = React$1.useState(false);
34883
34883
  const canvasRef = React$1.useRef(null);
@@ -35023,7 +35023,6 @@ const DocumentViewer = (props) => {
35023
35023
  )
35024
35024
 
35025
35025
  )
35026
-
35027
35026
  )
35028
35027
  )
35029
35028
  };