Fix: An empty message notification pops up at the top of the agent conversation. (#16353)

This commit is contained in:
balibabu
2026-06-25 17:32:24 +08:00
committed by GitHub
parent 31e50b164f
commit 1dfc24003b

View File

@@ -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 = (