diff --git a/plugins/gitops-profiles/src/components/ClusterPage/ClusterPage.tsx b/plugins/gitops-profiles/src/components/ClusterPage/ClusterPage.tsx index c517f60dfd..29559e4fec 100644 --- a/plugins/gitops-profiles/src/components/ClusterPage/ClusterPage.tsx +++ b/plugins/gitops-profiles/src/components/ClusterPage/ClusterPage.tsx @@ -73,7 +73,7 @@ const ClusterPage: FC<{}> = () => { return () => clearInterval(interval); } return () => {}; - }, [pollingLog]); + }, [pollingLog, api, loginInfo, params]); return ( diff --git a/plugins/gitops-profiles/src/components/ProfileCatalog/ProfileCatalog.tsx b/plugins/gitops-profiles/src/components/ProfileCatalog/ProfileCatalog.tsx index 1994539950..6a72117203 100644 --- a/plugins/gitops-profiles/src/components/ProfileCatalog/ProfileCatalog.tsx +++ b/plugins/gitops-profiles/src/components/ProfileCatalog/ProfileCatalog.tsx @@ -150,7 +150,7 @@ const ProfileCatalog: FC<{}> = () => { return () => clearInterval(interval); } return () => {}; - }, [pollingLog]); + }, [pollingLog, api, gitHubOrg, gitHubRepo, loginInfo]); const showFailureMessage = (msg: string) => { setRunStatus(