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)
This commit is contained in:
balibabu
2026-03-17 11:44:01 +08:00
committed by GitHub
parent 1db5409d82
commit fdf2d84ffc

View File

@ -74,7 +74,7 @@ export function PublishConfirmDialog({
return formatDate(agentDetail.last_publish_time); return formatDate(agentDetail.last_publish_time);
} }
return ''; return '';
}, [agentDetail?.update_time]); }, [agentDetail.last_publish_time]);
// Get datasets associated with this pipeline from API response // Get datasets associated with this pipeline from API response
const associatedDatasets = useMemo(() => { const associatedDatasets = useMemo(() => {
@ -84,7 +84,7 @@ export function PublishConfirmDialog({
const handleConfirmPublish = useCallback(() => { const handleConfirmPublish = useCallback(() => {
onPublish(); onPublish();
setOpen(false); setOpen(false);
}, []); }, [onPublish]);
if (isPipeline) { if (isPipeline) {
return null; return null;