diff --git a/ui/src/components/common/SlidingSidebar/partials/PipelineUpdate/index.tsx b/ui/src/components/common/SlidingSidebar/partials/PipelineUpdate/index.tsx index 3fe49fb5a..6c297e7a6 100644 --- a/ui/src/components/common/SlidingSidebar/partials/PipelineUpdate/index.tsx +++ b/ui/src/components/common/SlidingSidebar/partials/PipelineUpdate/index.tsx @@ -38,6 +38,15 @@ export function PipelineUpdate({ pipelineId: updatedPipelineId, active: !!updatedPipelineId, }); + + // Call update complete on dismount if pipeline was updated + useEffect(() => { + return () => { + if (updatedPipelineId) { + onUpdateComplete && onUpdateComplete(); + } + }; + }, [updatedPipelineId, onUpdateComplete]); // Track update process and close on completion useEffect(() => { diff --git a/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx b/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx index ec920a2c7..362d63643 100644 --- a/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx +++ b/ui/src/components/pages/Namespace/partials/PipelineCard/index.tsx @@ -76,6 +76,7 @@ export function PipelineCard({ const handleUpdateComplete = useCallback(() => { refresh(); + setPipelineAbleToLoad(false); if (!setSidebarProps) { return; }