Просмотр исходного кода

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

[0.9.0] Show jobs with no runs only in "All"
abelanger5 4 лет назад
Родитель
Сommit
c73f751f0a
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(
         const status: JobStatusWithTimeAndVersion = _.get(
           jobStatus,
           jobStatus,
           getChartKey(chart.name, chart.namespace),
           getChartKey(chart.name, chart.namespace),
-          null
+          { status: null } as any
         );
         );
-        return !status || status.status === lastRunStatus;
+        return status.status === lastRunStatus;
       });
       });
 
 
     if (sortType == "Newest") {
     if (sortType == "Newest") {