- const getLatLong: string[] = loc.location.split(',');
- this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude];
- this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude];
- this.addMarker(getLatLong[0], loc.id, loc.name);
+ if (loc.location !== ',,') {
+ const getLatLong: string[] = loc.location.split(',');
+ this.lng = +getLatLong[CONSTANTNUMBER.splitLongitude];
+ this.lat = +getLatLong[CONSTANTNUMBER.splitLatitude];
+ this.addMarker(getLatLong[0], loc.id, loc.name);
+ }