|
@@ -597,7 +597,7 @@ $(document).ready(function() {
|
|
|
reCalcPage() {
|
|
|
this.allTotalPage = Math.ceil(this.atts.length / this.pageCount);
|
|
|
const curNode = SpreadJsObj.getSelectObject(billsObj.sheet);
|
|
|
- const curAttIndex = this.billsIndexes[curNode.safe_id] || [];
|
|
|
+ const curAttIndex = curNode ? this.billsIndexes[curNode.safe_id] || [] : [];
|
|
|
this.curTotalPage = Math.ceil(curAttIndex.length / this.pageCount);
|
|
|
this.refreshShowPage();
|
|
|
}
|