Fix hostpage not rendering if no apps
parent
1af5a77657
commit
6117a903f2
|
@ -66,7 +66,7 @@ class HostPage extends Component {
|
|||
let filteredHosts = hosts
|
||||
if (focusedApp) {
|
||||
filteredHosts = _.pickBy(hosts, (val, __, ___) => {
|
||||
return val.apps.includes(focusedApp)
|
||||
return _.get(val, 'apps', []).includes(focusedApp)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue