diff options
| author | Dax Raad <[email protected]> | 2025-09-12 14:46:08 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-12 14:46:08 -0400 |
| commit | f2b4891ff04b694e21b7af5b7f908e9d08fb7a57 (patch) | |
| tree | 9b83a5e82401f36b3fe98b5e5a9ce1cb90069baf /cloud/app/src | |
| parent | efcb5abbf78e2f90dd35b30e80094a20a58e05d5 (diff) | |
| download | opencode-f2b4891ff04b694e21b7af5b7f908e9d08fb7a57.tar.gz opencode-f2b4891ff04b694e21b7af5b7f908e9d08fb7a57.zip | |
wip: zen
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/routes/workspace/[id].tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx index ad4e58c2c..8f0b9bd55 100644 --- a/cloud/app/src/routes/workspace/[id].tsx +++ b/cloud/app/src/routes/workspace/[id].tsx @@ -49,7 +49,7 @@ const createKey = action(async (form: FormData) => { const workspaceID = form.get("workspaceID")?.toString() if (!workspaceID) return { error: "Workspace ID is required" } return json( - withActor( + await withActor( () => Key.create({ name }) .then((data) => ({ data })) @@ -67,7 +67,7 @@ const removeKey = action(async (form: FormData) => { const workspaceID = form.get("workspaceID")?.toString() if (!workspaceID) return { error: "Workspace ID is required" } return json( - withActor(() => Key.remove({ id }), workspaceID), + await withActor(() => Key.remove({ id }), workspaceID), { revalidate: listKeys.key }, ) }, "key.remove") |
