Justin Rhee 3 лет назад
Родитель
Сommit
049826cf3e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      dashboard/src/main/home/sidebar/ClusterSection.tsx

+ 4 - 0
dashboard/src/main/home/sidebar/ClusterSection.tsx

@@ -35,6 +35,10 @@ export const ClusterSection: React.FC<Props> = ({
     }
   }, [currentCluster]);
 
+  useEffect(() => {
+    setIsExpanded(false);
+  }, [currentProject]);
+
   const renderClusterContent = (cluster: any) => {
     let clusterId = cluster.id;