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 ? (