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 authored and Sebastian Malton committed 2021-08-26 12:24:58 -04:00
1 parent c9f8765a49
commit 94e301887f
1 file changed
+1 -1
@@ -97,7 +97,7 @@ export class DeleteClusterDialog extends React.Component {
} }
changeCurrentContext() { changeCurrentContext() {
if (this.newCurrentContext) { if (this.newCurrentContext && this.showContextSwitch) {
dialogState.config.currentContext = this.newCurrentContext; dialogState.config.currentContext = this.newCurrentContext;
} }
} }