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

Do not switch context if select is hidden

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-08-26 16:41:10 +03:00 committed by Sebastian Malton
parent c9f8765a49
commit 94e301887f

View File

@ -97,7 +97,7 @@ export class DeleteClusterDialog extends React.Component {
}
changeCurrentContext() {
if (this.newCurrentContext) {
if (this.newCurrentContext && this.showContextSwitch) {
dialogState.config.currentContext = this.newCurrentContext;
}
}