diff --git a/web/src/workspaces/api.ts b/web/src/workspaces/api.ts index 3fdd387..46b568e 100644 --- a/web/src/workspaces/api.ts +++ b/web/src/workspaces/api.ts @@ -55,7 +55,7 @@ function useCreateWorkspace() { setStatus({ type: "ok" }); return workspace ?? null; } catch (error: unknown) { - setStatus({ type: "error", error }); + setStatus({ type: "error", error: error as ApiError }); return null; } },