Browse Source

fix for load details

Nikolay Suslov 6 years ago
parent
commit
937db37a1c
1 changed files with 3 additions and 0 deletions
  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
   }