소스 검색

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) {