mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-04 04:43:01 +01:00
Remove usages of the websocketconnected variable
This commit is contained in:
parent
bfeb64b48f
commit
9a43622cef
5 changed files with 1 additions and 4 deletions
|
@ -278,7 +278,6 @@ export default function Agents() {
|
||||||
<div className={`${styles.pageLayout} w-full mx-auto`}>
|
<div className={`${styles.pageLayout} w-full mx-auto`}>
|
||||||
<div className={`${styles.sidePanel} top-0`}>
|
<div className={`${styles.sidePanel} top-0`}>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
webSocketConnected={true}
|
|
||||||
conversationId={null}
|
conversationId={null}
|
||||||
uploadedFiles={[]}
|
uploadedFiles={[]}
|
||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
|
|
|
@ -944,7 +944,6 @@ export default function Automations() {
|
||||||
<div className={`grid w-full ml-auto mr-auto`}>
|
<div className={`grid w-full ml-auto mr-auto`}>
|
||||||
<div className={`${styles.sidePanel} top-0`}>
|
<div className={`${styles.sidePanel} top-0`}>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
webSocketConnected={true}
|
|
||||||
conversationId={null}
|
conversationId={null}
|
||||||
uploadedFiles={[]}
|
uploadedFiles={[]}
|
||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
|
|
|
@ -194,6 +194,7 @@ export default function Chat() {
|
||||||
|
|
||||||
async function chat() {
|
async function chat() {
|
||||||
localStorage.removeItem("message");
|
localStorage.removeItem("message");
|
||||||
|
if (!queryToProcess || !conversationId) return;
|
||||||
let chatAPI = `/api/chat?q=${encodeURIComponent(queryToProcess)}&conversation_id=${conversationId}&stream=true&client=web`;
|
let chatAPI = `/api/chat?q=${encodeURIComponent(queryToProcess)}&conversation_id=${conversationId}&stream=true&client=web`;
|
||||||
if (locationData) {
|
if (locationData) {
|
||||||
chatAPI += `®ion=${locationData.region}&country=${locationData.country}&city=${locationData.city}&timezone=${locationData.timezone}`;
|
chatAPI += `®ion=${locationData.region}&country=${locationData.country}&city=${locationData.city}&timezone=${locationData.timezone}`;
|
||||||
|
|
|
@ -302,7 +302,6 @@ export default function Home() {
|
||||||
</title>
|
</title>
|
||||||
<div className={`${styles.sidePanel}`}>
|
<div className={`${styles.sidePanel}`}>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
webSocketConnected={true}
|
|
||||||
conversationId={conversationId}
|
conversationId={conversationId}
|
||||||
uploadedFiles={uploadedFiles}
|
uploadedFiles={uploadedFiles}
|
||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
|
|
|
@ -214,7 +214,6 @@ export default function Search() {
|
||||||
<div className={`${styles.searchLayout}`}>
|
<div className={`${styles.searchLayout}`}>
|
||||||
<div className='h-full'>
|
<div className='h-full'>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
webSocketConnected={true}
|
|
||||||
conversationId={null}
|
conversationId={null}
|
||||||
uploadedFiles={[]}
|
uploadedFiles={[]}
|
||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
|
|
Loading…
Reference in a new issue