diff --git a/src/renderer/components/+namespaces/namespace-select-filter.tsx b/src/renderer/components/+namespaces/namespace-select-filter.tsx index a490183d7c..df435d9d4d 100644 --- a/src/renderer/components/+namespaces/namespace-select-filter.tsx +++ b/src/renderer/components/+namespaces/namespace-select-filter.tsx @@ -36,9 +36,8 @@ import { isMac } from "../../../common/vars"; const Placeholder = observer((props: PlaceholderProps) => { 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: