فهرست منبع

Added currentView to refetch data for charts

Nicolas Frati 4 سال پیش
والد
کامیت
ecb2f510be
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

+ 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 !== "")) {