mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
fix not sending upn correctly to api when editing cert authority (#27726)
For #27570 fixes issue where upn was not sent back correctly when editing digicert cert authority
This commit is contained in:
parent
2ced8f710f
commit
94037e5e56
2 changed files with 3 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ describe("ScriptListItem", () => {
|
|||
/>
|
||||
);
|
||||
|
||||
fireEvent.click(screen.getByText("Uploaded about 4 years ago"));
|
||||
fireEvent.click(screen.getByText("Uploaded over 4 years ago"));
|
||||
expect(onClickScript).toHaveBeenCalledWith(MAC_SCRIPT);
|
||||
expect(onEdit).not.toHaveBeenCalled();
|
||||
expect(onDelete).not.toHaveBeenCalled();
|
||||
|
|
|
|||
|
|
@ -38,9 +38,8 @@ export const generateDefaultFormData = (
|
|||
apiToken: certAuthority.api_token,
|
||||
profileId: certAuthority.profile_id,
|
||||
commonName: certAuthority.certificate_common_name,
|
||||
userPrincipalName: certAuthority.certificate_user_principal_names
|
||||
? certAuthority.certificate_user_principal_names[0]
|
||||
: "",
|
||||
userPrincipalName:
|
||||
certAuthority.certificate_user_principal_names?.[0] ?? "",
|
||||
certificateSeatId: certAuthority.certificate_seat_id,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue