(order)
| 157 | }; |
| 158 | |
| 159 | const handleReorderSave = async (order) => { |
| 160 | try { |
| 161 | const pdfupdatedData = await reorderPdfPages(props.pdfArrayBuffer, order); |
| 162 | if (pdfupdatedData) { |
| 163 | props.setPdfArrayBuffer(pdfupdatedData.arrayBuffer); |
| 164 | props.setPdfBase64Url(pdfupdatedData.base64); |
| 165 | props.setAllPages(pdfupdatedData.totalPages); |
| 166 | props.setPageNumber(1); |
| 167 | } |
| 168 | } catch (e) { |
| 169 | console.log("error in reorder pdf pages", e); |
| 170 | } |
| 171 | setIsReorderModal(false); |
| 172 | }; |
| 173 | |
| 174 | const handleDownloadDoc = async () => { |
| 175 | await handleDownloadPdf( |
nothing calls this directly
no test coverage detected