Remove usages of the websocketconnected variable

This commit is contained in:
sabaimran 2024-08-01 13:14:23 +05:30
parent bfeb64b48f
commit 9a43622cef
5 changed files with 1 additions and 4 deletions

View file

@ -278,7 +278,6 @@ export default function Agents() {
<div className={`${styles.pageLayout} w-full mx-auto`}>
<div className={`${styles.sidePanel} top-0`}>
<SidePanel
webSocketConnected={true}
conversationId={null}
uploadedFiles={[]}
isMobileWidth={isMobileWidth}

View file

@ -944,7 +944,6 @@ export default function Automations() {
<div className={`grid w-full ml-auto mr-auto`}>
<div className={`${styles.sidePanel} top-0`}>
<SidePanel
webSocketConnected={true}
conversationId={null}
uploadedFiles={[]}
isMobileWidth={isMobileWidth}

View file

@ -194,6 +194,7 @@ export default function Chat() {
async function chat() {
localStorage.removeItem("message");
if (!queryToProcess || !conversationId) return;
let chatAPI = `/api/chat?q=${encodeURIComponent(queryToProcess)}&conversation_id=${conversationId}&stream=true&client=web`;
if (locationData) {
chatAPI += `&region=${locationData.region}&country=${locationData.country}&city=${locationData.city}&timezone=${locationData.timezone}`;

View file

@ -302,7 +302,6 @@ export default function Home() {
</title>
<div className={`${styles.sidePanel}`}>
<SidePanel
webSocketConnected={true}
conversationId={conversationId}
uploadedFiles={uploadedFiles}
isMobileWidth={isMobileWidth}

View file

@ -214,7 +214,6 @@ export default function Search() {
<div className={`${styles.searchLayout}`}>
<div className='h-full'>
<SidePanel
webSocketConnected={true}
conversationId={null}
uploadedFiles={[]}
isMobileWidth={isMobileWidth}