mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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", |   "name": "unleash-frontend", | ||||||
|   "description": "unleash your features", |   "description": "unleash your features", | ||||||
|   "version": "4.7.1", |   "version": "4.7.2", | ||||||
|   "keywords": [ |   "keywords": [ | ||||||
|     "unleash", |     "unleash", | ||||||
|     "feature toggle", |     "feature toggle", | ||||||
|  | |||||||
| @ -71,6 +71,11 @@ const useFeatureForm = ( | |||||||
|                     ...prev, |                     ...prev, | ||||||
|                     name: 'A feature with this name already exists', |                     name: 'A feature with this name already exists', | ||||||
|                 })); |                 })); | ||||||
|  |             } else { | ||||||
|  |                 setErrors(prev => ({ | ||||||
|  |                     ...prev, | ||||||
|  |                     name: e.toString(), | ||||||
|  |                 })); | ||||||
|             } |             } | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user