Browse Source

修复变更期打开bug

ellisran 1 năm trước cách đây
mục cha
commit
6bda2e16ab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/change_settle_list.js

+ 1 - 1
app/service/change_settle_list.js

@@ -22,7 +22,7 @@ module.exports = app => {
 
         async isSettle(cid) {
             const result = await this.getDataByCondition({ cid });
-            return result.length > 0;
+            return result && result.length > 0;
         }
 
         async updateChangeList(cid, settleBills, settlePos, list) {