diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js index 05f78606c57..4f7aa8bfcaa 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js @@ -264,6 +264,7 @@ function setWithinAlert(leafletId) { } else { var ptrn = /(?:)(.*)(?:<\/am\:description>)/g; var errorTxt; + var result = (ptrn.exec(data)); if (result) { errorTxt = result.length > 1 ? result[1] : data; } else { @@ -320,6 +321,7 @@ function setExitAlert(leafletId) { } else { var ptrn = /(?:)(.*)(?:<\/am\:description>)/g; var errorTxt; + var result = (ptrn.exec(data)); if (result) { errorTxt = result.length > 1 ? result[1] : data; } else { @@ -391,6 +393,7 @@ function setStationeryAlert(leafletId) { } else { var ptrn = /(?:)(.*)(?:<\/am\:description>)/g; var errorTxt; + var result = (ptrn.exec(data)); if (result) { errorTxt = result.length > 1 ? result[1] : data; } else { @@ -499,6 +502,7 @@ function setTrafficAlert(leafletId) { } else { var ptrn = /(?:)(.*)(?:<\/am\:description>)/g; var errorTxt; + var result = (ptrn.exec(data)); if (result) { errorTxt = result.length > 1 ? result[1] : data; } else { @@ -603,6 +607,7 @@ function setProximityAlert() { } else { var ptrn = /(?:)(.*)(?:<\/am\:description>)/g; var errorTxt; + var result = (ptrn.exec(data)); if (result) { errorTxt = result.length > 1 ? result[1] : data; } else {