fix: show status after create workflow run

This commit is contained in:
BennyKok
2023-12-15 19:48:51 +08:00
parent 4ea9cb61dd
commit 942660d505
4 changed files with 68 additions and 3 deletions
+3 -1
View File
@@ -118,7 +118,9 @@ export function RunWorkflowButton({
setIsLoading(true);
try {
const origin = window.location.origin;
await createRun(origin, workflow_version_id, machine);
await callServerPromise(
createRun(origin, workflow_version_id, machine)
);
// console.log(res.json());
setIsLoading(false);
} catch (error) {