diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js index dcb4b2b30c0..94dd4142431 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js @@ -85,9 +85,11 @@ const columns = [ key: 'imei', render: properties => { let imei = 'not-found'; - for (let i = 0; i < properties.length; i++) { - if (properties[i].name === 'IMEI') { - imei = properties[i].value; + if (properties) { + for (let i = 0; i < properties.length; i++) { + if (properties[i].name === 'IMEI') { + imei = properties[i].value; + } } } return imei; diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js index f48fad0d80d..303c1ecae02 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js @@ -85,9 +85,11 @@ const columns = [ key: 'imei', render: properties => { let imei = 'not-found'; - for (let i = 0; i < properties.length; i++) { - if (properties[i].name === 'IMEI') { - imei = properties[i].value; + if (properties) { + for (let i = 0; i < properties.length; i++) { + if (properties[i].name === 'IMEI') { + imei = properties[i].value; + } } } return imei;