Skip to content

Commit

Permalink
[CN-2386] move executions check to pipeline executions component
Browse files Browse the repository at this point in the history
  • Loading branch information
Abel Rodriguez committed Jun 7, 2023
1 parent d87739d commit 8e33fb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ export const ExecutionsTable = ({ executions, parameters }: IExecutionsTableProp
};

const isSelected = (name: string) => selectedExecutions.indexOf(name) !== -1;

if (executions.length == 0) {
return <h4 style={{ textAlign: 'center' }}>No pipeline executions found.</h4>
}

return (
<TableContainer component={Paper} classes={{ root: styles.tableContainer }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export const PipelineExecutions = ({ appName, pipeline, parameters, status, date
setExecutions(resp);
}, POLL_DELAY_MS);

if (executions.length == 0) {
return <h4 style={{ textAlign: 'center' }}>No pipeline executions found.</h4>
}

return (
<ExecutionsTable executions={executions} parameters={parameters} />
);
Expand Down

0 comments on commit 8e33fb5

Please sign in to comment.