1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

chore: fixing typo pre-defined (#9651)

This commit is contained in:
Mateusz Kwasniewski 2025-03-31 13:58:22 +02:00 committed by GitHub
parent aa6c422165
commit 1f1b00c38f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -116,8 +116,8 @@ const EnvironmentForm: React.FC<IEnvironmentForm> = ({
{globalChangeRequestConfigEnabled ? ( {globalChangeRequestConfigEnabled ? (
<> <>
<StyledInputDescription sx={{ mt: 2 }}> <StyledInputDescription sx={{ mt: 2 }}>
Would you like to pre-define change requests for Would you like to predefine change requests for this
this environment? environment?
</StyledInputDescription> </StyledInputDescription>
<ChangeRequestSelector <ChangeRequestSelector
onChange={setRequiredApprovals} onChange={setRequiredApprovals}

View File

@ -707,7 +707,7 @@ export class AccessService {
/* /*
This method is intended to give a predicable way to fetch This method is intended to give a predicable way to fetch
pre-defined roles defined in the RoleName enum. This method predefined roles defined in the RoleName enum. This method
should not be used to fetch custom root or project roles. should not be used to fetch custom root or project roles.
*/ */
async getPredefinedRole(roleName: RoleName): Promise<IRole> { async getPredefinedRole(roleName: RoleName): Promise<IRole> {
@ -715,7 +715,7 @@ export class AccessService {
const role = roles.find((r) => r.name === roleName); const role = roles.find((r) => r.name === roleName);
if (!role) { if (!role) {
throw new BadDataError( throw new BadDataError(
`Could not find pre-defined role with name ${RoleName}`, `Could not find predefined role with name ${RoleName}`,
); );
} }
return role; return role;