Remove top level error suppressors

This commit is contained in:
Manav Rathi 2024-04-14 19:42:30 +05:30
parent 4d19c46d7c
commit 22616bb77d
No known key found for this signature in database

View file

@ -146,26 +146,20 @@ export default function ExportModal(props: Props) {
const toggleContinuousExport = async () => {
if (!(await verifyExportFolderExists())) return;
try {
const newContinuousExport = !continuousExport;
if (newContinuousExport) {
exportService.enableContinuousExport();
} else {
exportService.disableContinuousExport();
}
updateContinuousExport(newContinuousExport);
} catch (e) {
log.error("onContinuousExportChange failed", e);
const newContinuousExport = !continuousExport;
if (newContinuousExport) {
exportService.enableContinuousExport();
} else {
exportService.disableContinuousExport();
}
updateContinuousExport(newContinuousExport);
};
const startExport = async () => {
if (!(await verifyExportFolderExists())) return;
try {
await exportService.scheduleExport();
} catch (e) {
log.error("scheduleExport failed", e);
}
await exportService.scheduleExport();
};
const stopExport = () => {