Преглед изворни кода

show jobs with no runs only in "All"

Anukul Sangwan пре 4 година
родитељ
комит
cebc9a7e27
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

+ 2 - 2
dashboard/src/main/home/cluster-dashboard/chart/ChartList.tsx

@@ -316,9 +316,9 @@ const ChartList: React.FunctionComponent<Props> = ({
         const status: JobStatusWithTimeAndVersion = _.get(
           jobStatus,
           getChartKey(chart.name, chart.namespace),
-          null
+          { status: null } as any
         );
-        return !status || status.status === lastRunStatus;
+        return status.status === lastRunStatus;
       });
 
     if (sortType == "Newest") {