mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 05:34:09 +00:00
try to forward err to the user
This commit is contained in:
@@ -69,7 +69,9 @@ export default function SheetsModal(props: SheetsModalProps) {
|
||||
if (!selectedFile) {
|
||||
return;
|
||||
} else {
|
||||
await uploadSheetClientFile(selectedFile);
|
||||
await uploadSheetClientFile(selectedFile).catch((err) => {
|
||||
console.error(err); //TODO: how to show this to the user
|
||||
});
|
||||
_onChange();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user