Parcourir la source

fix for load details

Nikolay Suslov il y a 6 ans
Parent
commit
937db37a1c
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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
   }