1
0
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:
Simon Hornby 2023-05-16 13:50:57 +02:00 committed by GitHub
parent 9e9076ce05
commit 4790a26e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ export const VariantForm = ({
'A variant with that name already exists for this environment.'
);
}
setName(name);
setName(name.trim());
};
const onSetPercentage = (percentage: string) => {