Commit eb0992b58e3ab212c0413a4e22774eaa4aaff088
1 parent
561fc119
fix: device list not found device image will throw error
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | ... | @@ -28,9 +28,9 @@ |
| 28 | 28 | :showBadge="false" |
| 29 | 29 | :simpleShow="true" |
| 30 | 30 | :imgList=" |
| 31 | - typeof record.deviceInfo.avatar !== 'undefined' && | |
| 32 | - record.deviceInfo.avatar !== '' && | |
| 33 | - record.deviceInfo.avatar != null | |
| 31 | + typeof record?.deviceInfo?.avatar !== 'undefined' && | |
| 32 | + record?.deviceInfo?.avatar !== '' && | |
| 33 | + record?.deviceInfo?.avatar != null | |
| 34 | 34 | ? [record.deviceInfo.avatar] |
| 35 | 35 | : null |
| 36 | 36 | " | ... | ... |