Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 6, 2025
1 parent 2bf13ef commit b4d5ed4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/src/app/admin/settings/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface Settings {
notifications: Notification[];
needs_reindexing: boolean;
gpu_enabled: boolean;
pro_search_disabled: boolean;
pro_search_disabled: boolean | null;
product_gating: GatingType;
auto_scroll: boolean;
}
Expand Down
6 changes: 0 additions & 6 deletions web/src/app/chat/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,6 @@ export function ChatPage({
if (!documentSidebarInitialWidth && maxDocumentSidebarWidth) {
documentSidebarInitialWidth = Math.min(700, maxDocumentSidebarWidth);
}

const [fullList, setFullList] = useState<any[]>([]);
class CurrentMessageFIFO {
private stack: PacketType[] = [];
isComplete: boolean = false;
Expand Down Expand Up @@ -1438,10 +1436,6 @@ export function ChatPage({
}
}

if (Object.hasOwn(packet, "stop_reason")) {
setFullList((prev) => [...prev, packet]);
}

// // Continuously refine the sub_questions based on the packets that we receive
if (
Object.hasOwn(packet, "stop_reason") &&
Expand Down
5 changes: 4 additions & 1 deletion web/src/components/settings/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export async function fetchSettingsSS(): Promise<CombinedSettings | null> {
} else {
settings = await results[0].json();
}
console.log(JSON.stringify(settings));

let enterpriseSettings: EnterpriseSettings | null = null;
if (tasks.length > 1) {
Expand Down Expand Up @@ -95,6 +94,10 @@ export async function fetchSettingsSS(): Promise<CombinedSettings | null> {
}
}

if (enterpriseSettings && settings.pro_search_disabled == null) {
settings.pro_search_disabled = true;
}

const webVersion = getWebVersion();

const combinedSettings: CombinedSettings = {
Expand Down

0 comments on commit b4d5ed4

Please sign in to comment.