mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Fix/create feature validation (#692)
* fix: display error if bad request * 4.7.2 * fix: resolve conflict
This commit is contained in:
parent
b77c4a84f0
commit
608c82870b
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "unleash-frontend",
|
||||
"description": "unleash your features",
|
||||
"version": "4.7.1",
|
||||
"version": "4.7.2",
|
||||
"keywords": [
|
||||
"unleash",
|
||||
"feature toggle",
|
||||
|
@ -71,6 +71,11 @@ const useFeatureForm = (
|
||||
...prev,
|
||||
name: 'A feature with this name already exists',
|
||||
}));
|
||||
} else {
|
||||
setErrors(prev => ({
|
||||
...prev,
|
||||
name: e.toString(),
|
||||
}));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user