Skip to content

Commit cb42c8d

Browse files
Fixed TypeError if device type is not available
1 parent 749f987 commit cb42c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Zigbee2mqttNetworkmap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default {
180180
return {
181181
id: d.ieeeAddr,
182182
name: d.type === 'Coordinator' ? ' ' : d.friendlyName,
183-
_cssClass: d.type.toLowerCase()
183+
_cssClass: d.type ? d.type.toLowerCase() : ''
184184
}
185185
})
186186
const nodes = attr.nodes.map(e => e.ieeeAddr)

0 commit comments

Comments
 (0)