From 53bcd413b8e96266c7dcd2278e3f4518e79f52ee Mon Sep 17 00:00:00 2001 From: heheer Date: Tue, 8 Jul 2025 20:34:04 +0800 Subject: [PATCH] app detail visibility (#5178) --- projects/app/src/pages/chat/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/app/src/pages/chat/index.tsx b/projects/app/src/pages/chat/index.tsx index 5411f8edd..5df56ae7e 100644 --- a/projects/app/src/pages/chat/index.tsx +++ b/projects/app/src/pages/chat/index.tsx @@ -276,6 +276,10 @@ const Render = (props: { appId: string; isStandalone?: string }) => { setAppId(appId); }, [appId, setAppId]); + const currentApp = useMemo(() => { + return myApps.find((app) => app._id === appId); + }, [appId, myApps]); + const chatHistoryProviderParams = useMemo( () => ({ appId, source: ChatSourceEnum.online }), [appId] @@ -291,7 +295,7 @@ const Render = (props: { appId: string; isStandalone?: string }) => { return source === ChatSourceEnum.online ? (