From 6117a903f2f5d460af163929756c486bfb09518d Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Tue, 10 Apr 2018 15:00:46 -0700 Subject: [PATCH] Fix hostpage not rendering if no apps --- ui/src/hosts/containers/HostPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/hosts/containers/HostPage.js b/ui/src/hosts/containers/HostPage.js index a52276c9d1..7e84151bdf 100644 --- a/ui/src/hosts/containers/HostPage.js +++ b/ui/src/hosts/containers/HostPage.js @@ -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) }) }