diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index bec362c4..80147e61 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -759,10 +759,10 @@ export default class acclist extends React.Component { let id = sessionStorage.getItem('keybatch_id') let data = { code_batch: dataCopy, - reseller_id: this.state.reseller.id, - reseller_name: this.state.reseller.name, - company_name: this.state.reseller.company_name, - receive_email: this.state.reseller.contact_email[0], + reseller_id: this.state.reseller?.id, + reseller_name: this.state.reseller?.name, + company_name: this.state.reseller?.company_name, + receive_email: this.state.reseller?.contact_email[0], payment_direction: this.state.payment_direction[this.state.paytype - 1] }