Просмотр исходного кода

Added currentView to refetch data for charts

Nicolas Frati 4 лет назад
Родитель
Сommit
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);
-  }, [namespace]);
+  }, [namespace, currentView]);
 
   const renderChartList = () => {
     if (isLoading || (!namespace && namespace !== "")) {