Преглед изворни кода

Merge branch 'master' into nafees/hotfixes

Mohammed Nafees пре 3 година
родитељ
комит
0043f746e2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

+ 2 - 2
dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

@@ -297,7 +297,7 @@ const ChartList: React.FunctionComponent<Props> = ({
       controllers.map((controller) => closeWebsocket(controller));
       closeWebsocket(jobWebsocketID);
     };
-  }, []);
+  }, [context.currentCluster]);
 
   useEffect(() => {
     const websocketID = "helm_releases";
@@ -307,7 +307,7 @@ const ChartList: React.FunctionComponent<Props> = ({
     return () => {
       closeWebsocket(websocketID);
     };
-  }, [namespace]);
+  }, [namespace, context.currentCluster]);
 
   useEffect(() => {
     let isSubscribed = true;