Kaynağa Gözat

Update storage.ts

main
Steve Ruiz 4 yıl önce
ebeveyn
işleme
6722ae3dfa
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    1
      state/storage.ts

+ 5
- 1
state/storage.ts Dosyayı Görüntüle

@@ -45,7 +45,11 @@ class Storage {
45 45
       }
46 46
     }
47 47
 
48
-    this.load(data)
48
+    try {
49
+      this.load(data)
50
+    } catch (error) {
51
+      console.error(error)
52
+    }
49 53
   }
50 54
 
51 55
   saveDocumentToLocalStorage(data: Data) {

Loading…
İptal
Kaydet