mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Fix: Unable to navigate from the agent list page to the compilation editing page. (#17460)
This commit is contained in:
@@ -266,7 +266,7 @@ export const useSendMessageWithSse = () => {
|
||||
.pipeThrough(new EventSourceParserStream())
|
||||
.getReader();
|
||||
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
// oxlint-disable-next-line no-constant-condition
|
||||
while (true) {
|
||||
try {
|
||||
const x = await reader?.read();
|
||||
|
||||
@@ -4,6 +4,7 @@ import message from '@/components/ui/message';
|
||||
import { AgentCategory, AgentGlobals } from '@/constants/agent';
|
||||
import { useFetchTenantInfo } from '@/hooks/use-user-setting-request';
|
||||
import {
|
||||
AgentListItem,
|
||||
IAgentLogResponse,
|
||||
IAgentLogsRequest,
|
||||
IAgentLogsResponse,
|
||||
@@ -154,7 +155,7 @@ export const useFetchAgentListByPage = () => {
|
||||
});
|
||||
|
||||
const { data, isFetching: loading } = useQuery<{
|
||||
canvas: IFlow[];
|
||||
canvas: AgentListItem[];
|
||||
total: number;
|
||||
}>({
|
||||
queryKey: [
|
||||
@@ -205,7 +206,7 @@ export const useFetchAgentListByPage = () => {
|
||||
};
|
||||
|
||||
export function useFetchAllAgentList() {
|
||||
const { data, isFetching: loading } = useQuery<IFlow[]>({
|
||||
const { data, isFetching: loading } = useQuery<AgentListItem[]>({
|
||||
queryKey: [AgentApiAction.FetchAllAgentList],
|
||||
queryFn: async () => {
|
||||
const { data } = await agentService.listAgents(
|
||||
@@ -853,7 +854,7 @@ export const useFetchAgentList = ({
|
||||
canvas_category,
|
||||
}: IPipeLineListRequest) => {
|
||||
const { data, isFetching: loading } = useQuery<{
|
||||
canvas: IFlow[];
|
||||
canvas: AgentListItem[];
|
||||
total: number;
|
||||
}>({
|
||||
queryKey: [AgentApiAction.FetchAgentList],
|
||||
|
||||
@@ -193,7 +193,7 @@ export const useSendMessageBySSE = (url: string) => {
|
||||
let lastEventData: ResponseType | undefined;
|
||||
|
||||
try {
|
||||
// eslint-disable-next-line no-constant-condition
|
||||
// oxlint-disable-next-line no-constant-condition
|
||||
while (true) {
|
||||
const x = await reader?.read();
|
||||
if (!x) {
|
||||
|
||||
Reference in New Issue
Block a user