浏览代码

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 2 年之前
父节点
当前提交
2657c3a49f
共有 1 个文件被更改,包括 3 次插入1 次删除
  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) {