mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing minor issue in viewing geo fence
This commit is contained in:
parent
8548e911aa
commit
4f447305c9
@ -310,7 +310,7 @@ function updateDrawing(updatedGeoJson) {
|
||||
function viewFence(geoFenceElement,id) {
|
||||
var geoJson = $(geoFenceElement).attr('data-geoJson');
|
||||
var matchResults = /(?:"geoFenceGeoJSON"):"{(.*)}"/g.exec(geoJson);
|
||||
if (matchResults.length > 1) {
|
||||
if (matchResults && matchResults.length > 1) {
|
||||
geoJson = "{" + matchResults[1] + "}";
|
||||
}
|
||||
geoJson = JSON.parse(geoJson.replace(/'/g, '"'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user