fix: show status after create workflow run

This commit is contained in:
BennyKok committed 2023-12-15 19:48:51 +08:00
1 parent 4ea9cb61dd
commit 942660d505
4 files changed
+68 -3

No files matched your search

+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) {