mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-30 18:17:53 +00:00 
			
		
		
		
	fix(ui): team uuid to sent while creating user (#13768)
This commit is contained in:
		
							parent
							
								
									7dd3874224
								
							
						
					
					
						commit
						761889175e
					
				| @ -26,6 +26,7 @@ import { | |||||||
|   ROUTES, |   ROUTES, | ||||||
|   VALIDATION_MESSAGES, |   VALIDATION_MESSAGES, | ||||||
| } from '../../constants/constants'; | } from '../../constants/constants'; | ||||||
|  | import { EntityReference } from '../../generated/entity/type'; | ||||||
| import { createUser } from '../../rest/userAPI'; | import { createUser } from '../../rest/userAPI'; | ||||||
| import { getNameFromUserData } from '../../utils/AuthProvider.util'; | import { getNameFromUserData } from '../../utils/AuthProvider.util'; | ||||||
| import brandImageClassBase from '../../utils/BrandImage/BrandImageClassBase'; | import brandImageClassBase from '../../utils/BrandImage/BrandImageClassBase'; | ||||||
| @ -53,6 +54,7 @@ const SignUp = () => { | |||||||
|     try { |     try { | ||||||
|       const res = await createUser({ |       const res = await createUser({ | ||||||
|         ...data, |         ...data, | ||||||
|  |         teams: (data.teams as EntityReference[])?.map((t) => t.id), | ||||||
|         profile: { |         profile: { | ||||||
|           images: getImages(appState.newUser.picture ?? ''), |           images: getImages(appState.newUser.picture ?? ''), | ||||||
|         }, |         }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Chirag Madlani
						Chirag Madlani