mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-30 18:17:53 +00:00 
			
		
		
		
	Fix : As admin, setting myself as owner of a table does not update the table view. (#1166)
This commit is contained in:
		
							parent
							
								
									2a3645577b
								
							
						
					
					
						commit
						42caa8abf4
					
				| @ -45,9 +45,9 @@ const ErrorPlaceHolderES = ({ type, errorMessage, query = '' }: Props) => { | ||||
|   const getUserDisplayName = () => { | ||||
|     return isAuthDisabled | ||||
|       ? AppState.users?.length > 0 | ||||
|         ? AppState.users[0].displayName | ||||
|         ? AppState.users[0].displayName || AppState.users[0].name | ||||
|         : 'User' | ||||
|       : AppState.userDetails.displayName; | ||||
|       : AppState.userDetails.displayName || AppState.userDetails.name; | ||||
|   }; | ||||
|   const noRecordForES = () => { | ||||
|     return ( | ||||
|  | ||||
| @ -216,7 +216,7 @@ const TeamsPage = () => { | ||||
|           data-testid="user-card-container"> | ||||
|           {currentTeam?.users?.map((user, index) => { | ||||
|             const User = { | ||||
|               description: user.description || '', | ||||
|               description: user.displayName || '', | ||||
|               name: user.name || '', | ||||
|               id: user.id, | ||||
|             }; | ||||
|  | ||||
| @ -93,7 +93,7 @@ export const getOwnerFromId = ( | ||||
|     const user = AppState.users.find((item) => item.id === id); | ||||
|     if (user) { | ||||
|       retVal = { | ||||
|         name: user.displayName, | ||||
|         name: user.displayName || user.name, | ||||
|         id: user.id, | ||||
|         type: 'user', | ||||
|       }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sachin Chaurasiya
						Sachin Chaurasiya