Przeglądaj źródła

Merge pull request #1129 from porter-dev/job-filter-hotfix

[0.9.0] Show jobs with no runs only in "All"
abelanger5 4 lat temu
rodzic
commit
c73f751f0a

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