mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix not being able to select roles and clusterroles
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
1c493dac67
commit
5f98751e56
2 files changed
+2
-2
No files matched your search
@@ -199,7 +199,7 @@ export class ClusterRoleBindingDialog extends React.Component<Props> {
|
|||||||
options={this.clusterRoleRefoptions}
|
options={this.clusterRoleRefoptions}
|
||||||
value={this.selectedRoleRef}
|
value={this.selectedRoleRef}
|
||||||
onChange={({ value }: SelectOption<ClusterRole> ) => {
|
onChange={({ value }: SelectOption<ClusterRole> ) => {
|
||||||
if (this.bindingName === this.selectedRoleRef.getName()) {
|
if (!this.selectedRoleRef || this.bindingName === this.selectedRoleRef.getName()) {
|
||||||
this.bindingName = value.getName();
|
this.bindingName = value.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export class RoleBindingDialog extends React.Component<Props> {
|
|||||||
options={this.roleRefOptions}
|
options={this.roleRefOptions}
|
||||||
value={this.selectedRoleRef}
|
value={this.selectedRoleRef}
|
||||||
onChange={({ value }) => {
|
onChange={({ value }) => {
|
||||||
if (this.bindingName === this.selectedRoleRef.getName()) {
|
if (!this.selectedRoleRef || this.bindingName === this.selectedRoleRef.getName()) {
|
||||||
this.bindingName = value.getName();
|
this.bindingName = value.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user