let events = null;
function getEventList() {
if (events) return events;
events = fetch(...).then(r => r.json());
return events;
}
async function getEventDetails() {
events = await getEventList();
// ...
}
$('.click-reports-link').click(function() {
console.log(this);
});