mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
Catch xlsx error (#1487)
* catch potential xlsx errors * clear worksheet errors when starting new connections
This commit is contained in:
committed by
GitHub
parent
bac11adeb1
commit
0b36608134
@@ -76,6 +76,7 @@ export default function GSheetSetup(props: GSheetSetupProps) {
|
||||
const handleConnect = async () => {
|
||||
if (!file) return;
|
||||
if (!sheetId) return;
|
||||
patchStepData({ worksheet: { available: false, error: '' } });
|
||||
|
||||
setLoading('connect');
|
||||
const result = await connect(file, sheetId);
|
||||
|
||||
Reference in New Issue
Block a user