From fdf2d84ffcbf28e84aa9f208e7c82804b9b4d1d2 Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 17 Mar 2026 11:44:01 +0800 Subject: [PATCH] Fix: Fixed an issue where the agent could not publish. (#13644) ### What problem does this PR solve? Fix: Fixed an issue where the agent could not publish. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/agent/components/publish-confirm-dialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/agent/components/publish-confirm-dialog.tsx b/web/src/pages/agent/components/publish-confirm-dialog.tsx index 5fa9f03c9..b80eaaa9b 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;