feat: add create workflow run error server action catch, redirect workflow parse error, add key revoked col
This commit is contained in:
@@ -7,6 +7,8 @@ export async function callServerPromise<T>(result: Promise<T>) {
|
||||
.then((x) => {
|
||||
if ((x as { message: string })?.message !== undefined) {
|
||||
toast.success((x as { message: string }).message);
|
||||
} else if ((x as { error: string })?.error !== undefined) {
|
||||
toast.error((x as { error: string }).error);
|
||||
}
|
||||
return x;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user