diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 22ec40fd..156240d5 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -129,9 +129,11 @@ export function TPMIndexHOC(WrappedComponent) { console.log(this.props.history.location); getOrzCompanyList().then(res=>{ console.log(res); - this.setState({ - companyList:res.data.rows - }) + if(res){ + this.setState({ + companyList:res.data.rows + }) + } }) }