fix: type error
This commit is contained in:
@@ -55,7 +55,7 @@ function useCreateWorkspace() {
|
|||||||
setStatus({ type: "ok" });
|
setStatus({ type: "ok" });
|
||||||
return workspace ?? null;
|
return workspace ?? null;
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
setStatus({ type: "error", error });
|
setStatus({ type: "error", error: error as ApiError });
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user