in packages/issue-dashboard-widgets/widgets/distribution-reports/app/widget.js [209:228]
async recalculateReport() {
const {
report,
isLoading,
refreshPeriod,
isConfiguring
} = this.state;
if (isLoading || isConfiguring || !report || !report.status ||
ReportModel.isReportCalculation(report)) {
return;
}
try {
report.status = await recalculateReport(fetcher().fetchYouTrack, report);
this.setState({report, refreshPeriod});
} catch (e) {
await this.onWidgetRefresh();
}
}