fix: type error

This commit is contained in:
2024-12-03 22:43:01 +00:00
parent f96c0ab92d
commit 56a16120de

View File

@@ -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;
}
},