Fix APPM store app crash on app installation product-iots#325

feature/appm-store/pbac
Jayasanka Weerasinghe 5 years ago
parent 6ad69ca702
commit a6883c55bb

@ -85,9 +85,11 @@ const columns = [
key: 'imei', key: 'imei',
render: properties => { render: properties => {
let imei = 'not-found'; let imei = 'not-found';
for (let i = 0; i < properties.length; i++) { if (properties) {
if (properties[i].name === 'IMEI') { for (let i = 0; i < properties.length; i++) {
imei = properties[i].value; if (properties[i].name === 'IMEI') {
imei = properties[i].value;
}
} }
} }
return imei; return imei;

@ -85,9 +85,11 @@ const columns = [
key: 'imei', key: 'imei',
render: properties => { render: properties => {
let imei = 'not-found'; let imei = 'not-found';
for (let i = 0; i < properties.length; i++) { if (properties) {
if (properties[i].name === 'IMEI') { for (let i = 0; i < properties.length; i++) {
imei = properties[i].value; if (properties[i].name === 'IMEI') {
imei = properties[i].value;
}
} }
} }
return imei; return imei;

Loading…
Cancel
Save