mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
fix: prevent variant name from containing extra whitespace (#3777)
This commit is contained in:
parent
9e9076ce05
commit
4790a26e6f
@ -226,7 +226,7 @@ export const VariantForm = ({
|
|||||||
'A variant with that name already exists for this environment.'
|
'A variant with that name already exists for this environment.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
setName(name);
|
setName(name.trim());
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSetPercentage = (percentage: string) => {
|
const onSetPercentage = (percentage: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user