Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: add null safety checks in webhook response status hook (#12114)

SalmonWu13f63f00732608
diff --git a/web/src/pages/agent/form/message-form/use-show-response-status.ts b/web/src/pages/agent/form/message-form/use-show-response-status.ts
index 4914f5197b..f46e418d0c 100644
--- a/web/src/pages/agent/form/message-form/use-show-response-status.ts
+++ b/web/src/pages/agent/form/message-form/use-show-response-status.ts
@@ -16,7 +16,7 @@ export function useShowWebhookResponseStatus(form: UseFormReturn<any>) {
const formData: BeginFormSchemaType = getNode(BeginId)?.data.form;
return (
formData?.mode === AgentDialogueMode.Webhook &&
- formData.execution_mode === WebhookExecutionMode.Streaming
+ formData?.execution_mode === WebhookExecutionMode.Streaming
);
}, [getNode]);