From 3c9c9edf5c225d51437d3174dd9fd0dd250e50f5 Mon Sep 17 00:00:00 2001 From: Chanwit Kaewkasi Date: Mon, 1 Jun 2020 23:04:36 +0700 Subject: [PATCH] add effect dependencies per lint --- .../gitops-profiles/src/components/ClusterPage/ClusterPage.tsx | 2 +- .../src/components/ProfileCatalog/ProfileCatalog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(