diff --git a/ui/src/hosts/components/HostsTable.js b/ui/src/hosts/components/HostsTable.js index 7eae8ee58..690ab51ec 100644 --- a/ui/src/hosts/components/HostsTable.js +++ b/ui/src/hosts/components/HostsTable.js @@ -66,12 +66,13 @@ const HostsTable = React.createClass({ render() { const hosts = this.sort(this.state.filteredHosts, this.state.sortKey, this.state.sortDirection); + const hostCount = hosts.length; const {source} = this.props; return (
-

{this.props.hosts.length} Hosts

+

{hostCount ? `${hostCount} Hosts` : ''}