Catch xlsx error (#1487)

* catch potential xlsx errors

* clear worksheet errors when starting new connections
This commit is contained in:
Alex Christoffer Rasmussen
2025-02-12 13:38:18 +01:00
committed by GitHub
parent bac11adeb1
commit 0b36608134
2 changed files with 12 additions and 0 deletions
@@ -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);