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:
parent
aa6c422165
commit
1f1b00c38f
@ -116,8 +116,8 @@ const EnvironmentForm: React.FC<IEnvironmentForm> = ({
|
||||
{globalChangeRequestConfigEnabled ? (
|
||||
<>
|
||||
<StyledInputDescription sx={{ mt: 2 }}>
|
||||
Would you like to pre-define change requests for
|
||||
this environment?
|
||||
Would you like to predefine change requests for this
|
||||
environment?
|
||||
</StyledInputDescription>
|
||||
<ChangeRequestSelector
|
||||
onChange={setRequiredApprovals}
|
||||
|
@ -707,7 +707,7 @@ export class AccessService {
|
||||
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
async getPredefinedRole(roleName: RoleName): Promise<IRole> {
|
||||
@ -715,7 +715,7 @@ export class AccessService {
|
||||
const role = roles.find((r) => r.name === roleName);
|
||||
if (!role) {
|
||||
throw new BadDataError(
|
||||
`Could not find pre-defined role with name ${RoleName}`,
|
||||
`Could not find predefined role with name ${RoleName}`,
|
||||
);
|
||||
}
|
||||
return role;
|
||||
|
Loading…
Reference in New Issue
Block a user