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,9 +28,9 @@ | ||
28 | :showBadge="false" | 28 | :showBadge="false" |
29 | :simpleShow="true" | 29 | :simpleShow="true" |
30 | :imgList=" | 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 | ? [record.deviceInfo.avatar] | 34 | ? [record.deviceInfo.avatar] |
35 | : null | 35 | : null |
36 | " | 36 | " |