aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/states/watch.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 15:47:28 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 15:47:28 +0900
commitdd541bfa7940959ab8a1d93d58a24cc277c51e48 (patch)
tree252defebcd7651ca880cfc635c399b9f42d82148 /frontend/app/states/watch.ts
parent8172d4c463f3782ecf924e641e96f18b4308e6a7 (diff)
downloadiosdc-japan-2025-albatross-dd541bfa7940959ab8a1d93d58a24cc277c51e48.tar.gz
iosdc-japan-2025-albatross-dd541bfa7940959ab8a1d93d58a24cc277c51e48.tar.zst
iosdc-japan-2025-albatross-dd541bfa7940959ab8a1d93d58a24cc277c51e48.zip
fix(frontend): workaround exec result
Diffstat (limited to 'frontend/app/states/watch.ts')
-rw-r--r--frontend/app/states/watch.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/app/states/watch.ts b/frontend/app/states/watch.ts
index ba3dd2a..5f5c4db 100644
--- a/frontend/app/states/watch.ts
+++ b/frontend/app/states/watch.ts
@@ -235,6 +235,11 @@ export const handleWsSubmitResultMessageAtom = atom(
newResult.execResults = prev.execResults.map((r) =>
r.status === "running" ? { ...r, status: "canceled" } : r,
);
+ } else {
+ newResult.execResults = prev.execResults.map((r) => ({
+ ...r,
+ status: "success",
+ }));
}
set(submitResultAtom, newResult);
if (status === "success" && score !== null) {