diff --git a/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js b/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js index 4af97bcb5..0db51f340 100644 --- a/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js +++ b/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js @@ -2,12 +2,10 @@ import Component from '@glimmer/component'; export default class ConsulServiceSearchBar extends Component { get healthStates() { - let states = ['passing', 'warning', 'critical', 'empty']; - if (this.args.peer) { - states = [...states, 'unknown']; + return ['passing', 'warning', 'critical', 'unknown', 'empty']; + } else { + return ['passing', 'warning', 'critical', 'empty']; } - - return states; } }