This commit is contained in:
parent
0323ee7336
commit
41541aca05
|
|
@ -108,7 +108,7 @@ export default async function Login({
|
|||
|
||||
if (!homeWorkspace || homeWorkspace.length === 0) {
|
||||
// Handle the case where no rows are found
|
||||
throw new Error((homeWorkspaceError as Error)?.message || "No home workspace found for this user.");
|
||||
throw new Error((homeWorkspaceError as unknown as Error)?.message || "No home workspace found for this user.");
|
||||
}
|
||||
|
||||
// If more than 1 row is returned, we handle that case
|
||||
|
|
|
|||
Loading…
Reference in New Issue