mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
fix validation error
This commit is contained in:
parent
bad6c95fa2
commit
20c2456199
@ -48,8 +48,7 @@ const prepare = (methods, dispatch) => {
|
||||
methods.removeFromList('strategies', index);
|
||||
};
|
||||
|
||||
methods.validateName = (v) => {
|
||||
const featureToggleName = v.target.value;
|
||||
methods.validateName = (featureToggleName) => {
|
||||
validateName(featureToggleName)
|
||||
.then(() => methods.setValue('nameError', undefined))
|
||||
.catch((err) => methods.setValue('nameError', err.message));
|
||||
|
Loading…
Reference in New Issue
Block a user