fixed reload after disband team (#823)
This commit is contained in:
		
							parent
							
								
									079a920c2c
								
							
						
					
					
						commit
						5318047794
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -18,10 +18,11 @@ export default function TeamList(props: { | |||
|     } | ||||
|   }; | ||||
| 
 | ||||
|   const deleteTeam = (team: Team) => { | ||||
|     return fetch("/api/teams/" + team.id, { | ||||
|   const deleteTeam = async (team: Team) => { | ||||
|     await fetch("/api/teams/" + team.id, { | ||||
|       method: "DELETE", | ||||
|     }).then(props.onChange()); | ||||
|     }); | ||||
|     return props.onChange(); | ||||
|   }; | ||||
| 
 | ||||
|   return ( | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Syed Ali Shahbaz
						Syed Ali Shahbaz