Add any to err on try catch

This commit is contained in:
Takeshi Kimata
2024-04-20 20:30:24 +09:00
parent 1f73da2c08
commit a1705d916e
13 changed files with 38 additions and 38 deletions

View File

@@ -71,7 +71,7 @@ export default function RunEditor({ projectId, runId }: Props) {
setTestRun(runData);
const foldersData = await fetchFolders(projectId);
setFolders(foldersData);
} catch (error) {
} catch (error: any) {
console.error("Error in effect:", error.message);
}
}
@@ -101,7 +101,7 @@ export default function RunEditor({ projectId, runId }: Props) {
});
setTestCases(testCasesData);
} catch (error) {
} catch (error: any) {
console.error("Error fetching cases data:", error.message);
}
};