From 0323ee73365ff5c9cb3a9970365d9f8c30be3814 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 20 May 2025 23:17:43 +0800 Subject: [PATCH] . --- chatdesk-ui/app/[locale]/login/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatdesk-ui/app/[locale]/login/page.tsx b/chatdesk-ui/app/[locale]/login/page.tsx index f4cdb4c..7968c75 100644 --- a/chatdesk-ui/app/[locale]/login/page.tsx +++ b/chatdesk-ui/app/[locale]/login/page.tsx @@ -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?.message || "No home workspace found for this user."); + throw new Error((homeWorkspaceError as Error)?.message || "No home workspace found for this user."); } // If more than 1 row is returned, we handle that case @@ -121,7 +121,7 @@ export default async function Login({ const workspace = homeWorkspace[0]; // Use the first (and only) row if (!homeWorkspace || homeWorkspace.length === 0) { - throw new Error(homeWorkspaceError?.message || "No home workspace found for this user."); + throw new Error((homeWorkspaceError as Error)?.message || "No home workspace found for this user."); } // if (!homeWorkspace) {