1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix NamespaceSelectFilter all namespaces button (#3983)

* Fix NamespaceSelectFilter all namespaces button

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* simplify fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-10-28 08:55:40 -04:00 committed by GitHub
parent b32e841bd2
commit 6c599556a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,10 @@ export class NamespaceSelectFilter extends React.Component<SelectProps> {
namespaceStore.toggleSingle(namespace);
}
} else {
namespaceStore.toggleAll(true); // "All namespaces" clicked
/**
* WARNING: only ever call this method with `false` as an argument
*/
namespaceStore.toggleAll(false);
}
};