1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-11 09:25:26 +03:00

chore: Fixup use of ServiceAccount to use getId

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-24 15:57:15 -04:00
parent 18b89d9a85
commit 74cf677b1b
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ class NonInjectedClusterRoleBindingDialog extends React.Component<ClusterRoleBin
}
@observable selectedRoleRef: ClusterRole | undefined = undefined;
selectedAccounts = new ObservableHashSet<ServiceAccount>([], sa => sa.metadata.uid);
selectedAccounts = new ObservableHashSet<ServiceAccount>([], sa => sa.getId());
selectedUsers = observable.set<string>([]);
selectedGroups = observable.set<string>([]);

View File

@ -73,7 +73,7 @@ class NonInjectedRoleBindingDialog extends React.Component<RoleBindingDialogProp
@observable.ref selectedRoleRef: Role | ClusterRole | null | undefined = null;
@observable bindingName = "";
@observable bindingNamespace: string | null = null;
selectedAccounts = new ObservableHashSet<ServiceAccount>([], sa => sa.metadata.uid);
selectedAccounts = new ObservableHashSet<ServiceAccount>([], sa => sa.getId());
selectedUsers = observable.set<string>([]);
selectedGroups = observable.set<string>([]);