Explorar el Código

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

[0.9.0] Show jobs with no runs only in "All"
abelanger5 hace 4 años
padre
commit
c73f751f0a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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") {