mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-25 14:05:03 +00:00
fix: remove labels for options(outdated)
This commit is contained in:
@ -37,7 +37,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
||||
status: null,
|
||||
trial_end: null,
|
||||
has_used_trial: true,
|
||||
secretApproval: false,
|
||||
secretApproval: true,
|
||||
secretRotation: true,
|
||||
caCrl: false,
|
||||
instanceUserManagement: false,
|
||||
|
@ -213,13 +213,9 @@ export const AccessPolicyForm = ({
|
||||
|
||||
const memberOptions = useMemo(
|
||||
() =>
|
||||
members.map(({ inviteEmail, user: { firstName, lastName, id: userId, username } }) => ({
|
||||
id: userId,
|
||||
type: ApproverType.User,
|
||||
label:
|
||||
firstName || lastName
|
||||
? `${firstName ?? ""} ${lastName ?? ""}`.trim()
|
||||
: username || inviteEmail
|
||||
members.map((member) => ({
|
||||
id: member.user.id,
|
||||
type: ApproverType.User
|
||||
})),
|
||||
[members]
|
||||
);
|
||||
@ -228,8 +224,7 @@ export const AccessPolicyForm = ({
|
||||
() =>
|
||||
groups?.map(({ group }) => ({
|
||||
id: group.id,
|
||||
type: ApproverType.Group,
|
||||
label: group.name
|
||||
type: ApproverType.Group
|
||||
})),
|
||||
[groups]
|
||||
);
|
||||
|
Reference in New Issue
Block a user