api call: const filterQuery = async (a,b) =>{ console.log(date,a,b) try { let response = await fetch('https://wellex.vidalhealth.com:7744/api/hospital-app/ask_corner/get_queries_all/', { method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json', withCredentials: true, 'X-CSRFToken' : CookieConstants.get_cookie() }, body: JSON.stringify({"query_type":"free_query", "query_status": a, "clinical_speciality":b, "start_date":date.length?convert(date[0]):"", "end_date":date.length?convert(date[1]):""}) }); let json = await response.json(); console.log(j...