Tony Kang 1 год назад
Родитель
Сommit
ab00b2fd14
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      app/public/report/js/rpt_archive.js

+ 6 - 4
app/public/report/js/rpt_archive.js

@@ -669,10 +669,12 @@ let rptArchiveObj = {
                 }
                 if (PAGE_SHOW.closeArchiveSignature) {
                     currentRptPageRst.items.forEach((pageItem, pageIdx) => {
-                        txtSignCells[pageIdx].forEach((txtCell) => {
-                            pageItem.cells.push(txtCell);
-                        });
-                        txtSignCells[pageIdx] = null;
+                        if (txtSignCells[pageIdx]) {
+                            txtSignCells[pageIdx].forEach((txtCell) => {
+                                pageItem.cells.push(txtCell);
+                            });
+                            txtSignCells[pageIdx] = null;
+                        }
                     });
                     txtSignCells = null;
                 }