Browse Source

fix read file

Victor Luiz Domingues 4 years ago
parent
commit
e83c6baced

+ 2 - 0
src/app/core/models/application/actions/action.js

@@ -35,6 +35,8 @@ export class Action {
     return map;
   }
 
+  fromMapList(map) {}
+
   toString() {
     return (
       "{" +

+ 2 - 2
src/app/core/parser/file-parser.js

@@ -52,8 +52,8 @@ export class FileParser {
       object_line = object_line.substring(0, object_line.length - 1);
     }
     const properties = object_line.split(",");
-    console.info("properties", properties);
-    for (const prop in properties) {
+    for (const index in properties) {
+      const prop = properties[index];
       const prop_info = prop.trim().split(":");
       const key = parseInt(prop_info[0]);
       if (prop_info[1] == undefined) continue;