Merge pull request #1271 from charithag/master

Fixed https://github.com/wso2/product-iots/issues/1184
merge-requests/33/head
Geeth 6 years ago committed by GitHub
commit 4d67016736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -279,10 +279,12 @@ var getProviderData = function (timeFrom, timeTo) {
var serviceUrl = '/api/device-mgt/v1.0/geo-services/stats/' + deviceType + '/' + deviceId + '?from=' + timeFrom + '&to=' + timeTo;
invokerUtil.get(serviceUrl,
function (data) {
if(data === ""){showCurrentLocation(tableData);}
if (data === "") {
showCurrentLocation(tableData);
}
tableData = JSON.parse(data);
if (tableData.length === 0) {
showCurrentLocation(tableData);
showCurrentLocation(tableData);
}
}, function (message) {
showCurrentLocation(tableData);

@ -113,8 +113,7 @@
conf: appConfigurations
},
uri: errorPage.definition[constants.PAGE_DEFINITION_URI],
uriParams: {},
user: utils.getCurrentUser()
uriParams: {}
};
var templateContext = {status: status, message: message};
var renderer = require("/lib/dynamic-files-renderer.js").renderer;

Loading…
Cancel
Save