simplify the namespace selector placeholder logic

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann committed 2021-10-28 15:29:19 -04:00
1 parent e8a93788b0
commit 6d43dbb8eb
1 file changed
+1 -2
@@ -36,9 +36,8 @@ import { isMac } from "../../../common/vars";
const Placeholder = observer((props: PlaceholderProps<any, boolean>) => {
const getPlaceholder = (): React.ReactNode => {
const namespaces = namespaceStore.contextNamespaces;
const length = namespaceStore.selectedNamespaces.length ? namespaces.length : 0;
switch (length) {
switch (namespaceStore.selectedNamespaces.length) {
case 0:
return <>All namespaces</>;
case 1: