Browse Source

Merge pull request #791 from porter-dev/0.5.0-fix-chart-list-update-on-view-change

[0.5.0] [Bugfix] - Fix chart list update on change of current view
jusrhee 5 năm trước cách đây
mục cha
commit
9a17793ab4

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