diff --git a/src/views/newMap/displayNew/utils.js b/src/views/newMap/displayNew/utils.js index 96f63cedc..199f51e80 100644 --- a/src/views/newMap/displayNew/utils.js +++ b/src/views/newMap/displayNew/utils.js @@ -29,7 +29,7 @@ export function covertMemberData (activeTrainList, resp) { const name = member.name ? '-' + member.name : ''; if (member.deviceCode) { const device = store.getters['map/getDeviceByCode'](member.deviceCode); - member.deviceName = device.name || device.groupNumber; + member.deviceName = device ? device.name || device.groupNumber : ''; member.label = member.type + member.deviceName + name + userName; member.normalName = member.type + member.deviceName + name; } else {