Implemented test run deletion

This commit is contained in:
Takeshi Kimata
2024-04-13 13:33:05 +09:00
parent c852d2e0cd
commit 42ab034a59
7 changed files with 46 additions and 18 deletions

View File

@@ -39,7 +39,8 @@ export default function RunsPage({ projectId }: Props) {
const onDeleteClick = async (runId: number) => {
try {
await deleteRun(runId);
setRuns(runs.filter((run) => run.id !== runId));
const data = await fetchRuns(projectId);
setRuns(data);
} catch (error) {
console.error("Error deleting run:", error);
}