Selaa lähdekoodia

修复变更期打开bug

ellisran 1 vuosi sitten
vanhempi
commit
6bda2e16ab
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {