From 87a03e831280e51f737ebe5769ec5958eed1c79b Mon Sep 17 00:00:00 2001 From: dilanua Date: Fri, 23 Sep 2016 11:15:12 +0530 Subject: [PATCH] Fix for jira: https://wso2.org/jira/browse/EMM-1617 --- .../devicemgt/app/modules/business-controllers/device.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js index 1273e7344a9..d743797ba39 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/modules/business-controllers/device.js @@ -97,7 +97,10 @@ deviceModule = function () { properties[constants["DEVICE_VENDOR"]] = constants["VENDOR_APPLE"]; } deviceObject[constants["DEVICE_PROPERTIES"]] = properties; - deviceObject[constants["DEVICE_INFO"]] = device["deviceInfo"]; + if (device["deviceInfo"]) { + deviceObject[constants["DEVICE_INFO"]] = device["deviceInfo"]; + } + response["content"] = deviceObject; return response; } else if (backendResponse.status == 401) {