Skip to content

Commit

Permalink
ADM-818:[Frontend] fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonTal committed Mar 5, 2024
1 parent 51517df commit 9a438d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/context/Metrics/metricsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export const metricsSlice = createSlice({
.filter((pipeline: pipeline) => pipeline.orgName.toLowerCase() === organization.toLowerCase())
.map((item: pipeline) => item.name);
const getValidPipelines = (pipelines: IPipelineConfig[]) => {
const hasPipeline = pipelines.filter(({ id }) => id).length;
const hasPipeline = pipelines.filter(({ id }) => id !== undefined).length;
return pipelines.length && hasPipeline
? pipelines.map(({ id, organization, pipelineName, step, branches }) => ({
id,
Expand Down Expand Up @@ -408,7 +408,7 @@ export const metricsSlice = createSlice({
};

const getPipelinesWarningMessage = (pipelines: IPipelineConfig[]) => {
const hasPipeline = pipelines.filter(({ id }) => id).length;
const hasPipeline = pipelines.filter(({ id }) => id !== undefined).length;
if (!pipelines.length || isProjectCreated || !hasPipeline) {
return [];
}
Expand Down

0 comments on commit 9a438d8

Please sign in to comment.