I have a function that fetch the data from backend and map over the data and then add them to array called events_data
events_data
function getvals() {