Skip to content

Commit 8158d49

Browse files
authored
fix: no request to the assistant interface (#998)
* fix: no request to the assistant interface * Refactor comment for clarity in AssistantFetcher
1 parent 3052878 commit 8158d49

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Assistant/AssistantFetcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export const AssistantFetcher = ({
2525
query?: string;
2626
}) => {
2727
try {
28-
// Only gate by current window service when no explicit serverId provided.
29-
if (!params.serverId && (await unrequitable())) {
28+
// Only gate by current window service.
29+
if (await unrequitable()) {
3030
return {
3131
total: 0,
3232
list: [],

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { useEffect, useState } from "react";
22
import { isArray, isNil, isObject, isString } from "lodash-es";
33
import { filesize as filesizeLib } from "filesize";
4+
import i18next from "i18next";
45

56
import platformAdapter from "./platformAdapter";
67
import { useAppStore } from "@/stores/appStore";
78
import { DEFAULT_COCO_SERVER_ID, HISTORY_PANEL_ID } from "@/constants";
89
import { useChatStore } from "@/stores/chatStore";
910
import { getCurrentWindowService } from "@/commands/windowService";
1011
import { useSearchStore } from "@/stores/searchStore";
11-
import i18next from "i18next";
1212

1313
export async function copyToClipboard(text: string, noTip = false) {
1414
const addError = useAppStore.getState().addError;

0 commit comments

Comments
 (0)