Skip to content

Commit a838167

Browse files
authored
Merge pull request #15 from ChrisScheffler/master
Fixed TypeError if device type is not available
2 parents 749f987 + cb42c8d commit a838167

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)