score:0

Accepted answer
try {
  const customer = await this.getCustomer();
  const {customer_number, customer_name, email, db_name, memo} = customer[0] || {};

  this.setState({
     customer,
     customer_number, 
     customer_name, 
     email, 
     db_name,
     memo
  });
}

Related Query

More Query from same tag