title: Response returning undefined react js axios
body: <p>I trying to view status of a variable (salesforecasting) in database. Its responds by sending true or false which is received fine in Postman. However when it gets to react, it is shows undefined on console. if i see whole response object, there i can see value has return correctly but when i try to print it, it shows undefined.</p>
  
  <p>in routes/api/salesforecasting.js</p>
  
  <pre><code>router.post('/view', function(req, res) {
      const email="Hamzakhan003@gmail.com"
      Customer.findOne({Email:email})
      .then(data=&gt;{
          if(data){
              let salevalue=data.Salesforecasting
          res.send({
              value: salevalue 
          });
      }
      });
  });
  </code></pre>
  
  <p>in react file</p>
  
  <pre><code>componentDidMount(){
              return axios.post('http://localhost:3000/api/sales-forecasting/view')
              .then(response =&gt; {
                  //const output = response.value
                  const value = response.value;
                  {console.log(arr.value)}
                  this.setState({
                      added: value
                  });
              });
      }
  </code></pre>