Browse Source

UI-1983: properly check if property exist to avoid JS error

4.3
Jean-Roch Maitre 10 years ago
parent
commit
051c56dde3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      submodules/users/users.js

+ 1
- 1
submodules/users/users.js View File

@ -2748,7 +2748,7 @@ define(function(require){
user: data.user || {}
};
if (data.devices.length) {
if (data.hasOwnProperty('devices') && data.devices.length) {
_.each(data.devices, function(device, idx) {
if (device.device_type === 'mobile') {
data.numbers.numbers[device.mobile.mdn] = {


Loading…
Cancel
Save