Skip to content

Commit

Permalink
Fix pipeline list page loader
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik committed Dec 15, 2020
1 parent f9339b9 commit 7acbbc7
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -15,7 +15,10 @@ interface PipelineAugmentRunsWrapperProps {

const PipelineAugmentRunsWrapper: React.FC<PipelineAugmentRunsWrapperProps> = (props) => {
const pipelineData = _.get(props.pipeline, 'data', []);
if (pipelineData.length < 1) {
if (!props.pipeline.loaded) {
return null;
}
if (props.pipeline.loaded && pipelineData.length < 1) {
return (
<div className="cos-status-box">
<div className="text-center">No {PipelineModel.labelPlural} Found</div>
Expand Down

0 comments on commit 7acbbc7

Please sign in to comment.