1
0
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:
Fredrik Strand Oseberg 2022-02-10 14:33:12 +01:00 committed by GitHub
parent b77c4a84f0
commit 608c82870b
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"name": "unleash-frontend",
"description": "unleash your features",
"version": "4.7.1",
"version": "4.7.2",
"keywords": [
"unleash",
"feature toggle",

View File

@ -71,6 +71,11 @@ const useFeatureForm = (
...prev,
name: 'A feature with this name already exists',
}));
} else {
setErrors(prev => ({
...prev,
name: e.toString(),
}));
}
return false;
}