Dax Raad 5 months ago
parent
commit
f2b4891ff0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cloud/app/src/routes/workspace/[id].tsx

+ 2 - 2
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")