Prechádzať zdrojové kódy

Added currentView to refetch data for charts

Nicolas Frati 5 rokov pred
rodič
commit
ecb2f510be

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

@@ -232,7 +232,7 @@ const ChartList: React.FunctionComponent<PropsType> = ({
       });
       });
     }
     }
     return () => (isSubscribed = false);
     return () => (isSubscribed = false);
-  }, [namespace]);
+  }, [namespace, currentView]);
 
 
   const renderChartList = () => {
   const renderChartList = () => {
     if (isLoading || (!namespace && namespace !== "")) {
     if (isLoading || (!namespace && namespace !== "")) {