I'm trying to read the promise response data which is seen as below in my console. How can i get business_id from the response. I tried using below code but it returned null:
let product = Api.get('materials/'+p.id).catch(() => {}).then((data)=>{return data.business_id;});