Skip to content

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

Fix: Fixed an issue where the agent could not publish. (#13644)

balibabufdf2d84ffcbf
diff --git a/web/src/pages/agent/components/publish-confirm-dialog.tsx b/web/src/pages/agent/components/publish-confirm-dialog.tsx
index 5fa9f03c98..b80eaaa9bd 100644
--- a/web/src/pages/agent/components/publish-confirm-dialog.tsx
+++ b/web/src/pages/agent/components/publish-confirm-dialog.tsx
@@ -74,7 +74,7 @@ export function PublishConfirmDialog({
return formatDate(agentDetail.last_publish_time);
}
return '';
- }, [agentDetail?.update_time]);
+ }, [agentDetail.last_publish_time]);
// Get datasets associated with this pipeline from API response
const associatedDatasets = useMemo(() => {
@@ -84,7 +84,7 @@ export function PublishConfirmDialog({
const handleConfirmPublish = useCallback(() => {
onPublish();
setOpen(false);
- }, []);
+ }, [onPublish]);
if (isPipeline) {
return null;