fix the lint errors in the frontend

This commit is contained in:
Willem Jiang 2026-04-26 15:37:16 +08:00
parent 28381e1383
commit 9eca429a29
2 changed files with 6 additions and 4 deletions

View File

@ -282,9 +282,11 @@ export default function NewAgentPage() {
<DropdownMenuContent align="end">
<DropdownMenuItem
onSelect={() => void handleSaveAgent()}
disabled={
!!agent || thread.isLoading || setupAgentStatus !== "idle"
}
disabled={[
Boolean(agent),
thread.isLoading,
setupAgentStatus !== "idle",
].some(Boolean)}
>
<SaveIcon className="h-4 w-4" />
{setupAgentStatus === "requested"

View File

@ -2,7 +2,7 @@ import type { AIMessage, Message, Run } from "@langchain/langgraph-sdk";
import type { ThreadsClient } from "@langchain/langgraph-sdk/client";
import { useStream } from "@langchain/langgraph-sdk/react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import { toast } from "sonner";
import type { PromptInputMessage } from "@/components/ai-elements/prompt-input";