Explorar el Código

fix load on jobs page

Alexander Belanger hace 3 años
padre
commit
761170e3f2

+ 5 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/useStackEnvGroups.ts

@@ -51,6 +51,11 @@ export const useStackEnvGroups = (chart: ChartType) => {
   useEffect(() => {
     const stack_id = chart?.stack_id;
     if (!stack_id) {
+      // if the chart has been loaded and the chart doesn't have a stack id, set loading to false
+      if (loading && chart) {
+        setLoading(false);
+      }
+
       return;
     }
     setLoading(true);