diff --git a/web/src/pages/agent/utils.ts b/web/src/pages/agent/utils.ts index 06832ae85f..b56c9b739c 100644 --- a/web/src/pages/agent/utils.ts +++ b/web/src/pages/agent/utils.ts @@ -565,8 +565,9 @@ export const buildDslGlobalVariables = ( return { globals: globalVariablesResult, variables: globalVariables }; }; +// TODO: This is caused by `useSendMessageBySSE`; it is recommended to sort out the logic. export const receiveMessageError = (res: any) => - res && (res?.response.status !== 200 || res?.data?.code !== 0); + res && res?.response.status !== 200; // Replace the id in the object with text export const replaceIdWithText = (