React JS Async await


if(this.state.duplicateStatus) {
  let dpRes = await ( async (payload, currentIndex) => {
  Object.entries(updateTeiJson).map(payload => {
    let trackedEntityInstance = payload[1].trackedEntityInstance;
    updateTrackedEntity(payload[1], trackedEntityInstance).then(responseData=>{
    console.log("responseData: ", responseData);
      this.setState({
         teiResponse: responseData.data,
         teiResponseString: JSON.stringify(responseData.data),
         duplicateStatus: false
      })
    });
  });        
}