// let index = companyData.findIndex((val) => val.company_id === this.state.tempData.company_id)
this.setState({listCompany:defaultProps,companyData:response.data.data,company:index===-1?null:companyData[index],msgErrorPerusahaan:index===-1?'Company has been Inactive.':"",errorPerusahaan:index===-1?true:false},()=>{
this.getParent()
this.getKPIType()
this.getMaxAch()
// let periode = (this.state.lastPeriod == "" ? String(Number(currentYear) + 1) : this.state.lastPeriod)