소스 검색

fix for load details

Nikolay Suslov 6 년 전
부모
커밋
937db37a1c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      public/app.js

+ 3 - 0
public/app.js

@@ -1683,6 +1683,8 @@ class App {
 
     var states = {};
 
+    let documents = await db.get('documents').once().then();
+    if(documents) {
     let docs = await db.get('documents').get(worldName).once().then();
     if (docs) {
       let saves = Object.keys(docs).filter(el => el.includes('_info_vwf_json'));
@@ -1695,6 +1697,7 @@ class App {
         }
       }
     }
+  }
     return states
   }