Skip to content
Snippets Groups Projects
Commit c88bc544 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Corrects errors with data using gid in strings

parent 70e17049
No related branches found
No related tags found
1 merge request!165Corrects errors with data using gid_str in place of gid_int
...@@ -21,6 +21,7 @@ export class Data implements IData { ...@@ -21,6 +21,7 @@ export class Data implements IData {
this.type = data.type; this.type = data.type;
this.properties = data.properties; this.properties = data.properties;
this.id = data.properties.gid ? data.properties.gid:data.properties.gid_int; this.id = data.properties.gid ? data.properties.gid:data.properties.gid_int;
this.id = this.id ? this.id:parseInt(data.properties.gid_str);
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment