Nikolay Suslov vor 6 Jahren
Ursprung
Commit
2acce441cb
2 geänderte Dateien mit 11 neuen und 2 gelöschten Zeilen
  1. 2 0
      public/app.js
  2. 9 2
      public/web/index-app.js

+ 2 - 0
public/app.js

@@ -1439,6 +1439,7 @@ class App {
         for (const el of Object.keys(worldFiles)) {
           if (el !== '_') {
             let doc = await _LCSUSER.get('worlds').get(worldName).get(el).once().then();
+            if(doc) {
             if (doc.file) {
               for (const fEl of Object.keys(doc)) {
                 if (fEl !== '_') {
@@ -1450,6 +1451,7 @@ class App {
               await _LCSUSER.get('worlds').get(worldName).get(el).put(null).then()
             }
           }
+          }
         }
       }
 

+ 9 - 2
public/web/index-app.js

@@ -575,7 +575,7 @@ class IndexApp {
                 if (desc[3] == 'saveState') {
                     cardInfo.title = desc[0].split('/')[2];
                 }
-                
+
                 if (desc[3] == 'proto') {
                     cardInfo.title = desc[0];
 
@@ -727,7 +727,14 @@ class IndexApp {
                                 {
                                     $type: "span",
                                     class: "mdc-card__subtitle mdc-theme--text-secondary-on-background",
-                                    $text: 'id: ' + cardInfo.title
+                                    $text: 'id: '
+                                },
+                                {
+                                    $type: "input",
+                                    type: "text",
+                                    disabled: "",
+                                    style: "font-size:18px",
+                                    value: cardInfo.title
                                 },
                                 {
                                     $type: "p",