Fix hostpage not rendering if no apps

pull/10616/head
Andrew Watkins 2018-04-10 15:00:46 -07:00
parent 1af5a77657
commit 6117a903f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)
})
}