Parcourir la source

Update 'src/app/core/drawers/drawer.js'

Fix ID numbering and read of GEO with 3 straight lines (not fineshed!)
+ addAction (action): added try/catch to help debug
leo il y a 2 ans
Parent
commit
2657c3a49f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/app/core/drawers/drawer.js

+ 3 - 1
src/app/core/drawers/drawer.js

@@ -78,7 +78,9 @@ export class Drawer {
     }
 
   addAction (action) {
-    this.drawerManager.addAction(action);
+    try { // To avoid 'TypeError: cyclic object value'
+      this.drawerManager.addAction(action);
+    } catch (error) { console.log("drawer.js!addAction(action): Error '" + error + "'"); }
     }
 
   static setMaxIndex (object) {