Skip to content

Commit cd7e4f9

Browse files
author
Mukul Tayal
committed
handle empty workflow state only for jobsView
1 parent 2e6faf9 commit cd7e4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/workflowEditor/Workflow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ export class Workflow extends Component<WorkflowProps, WorkflowState> {
641641
<div
642642
className={configDiffView ? 'workflow__body' : 'workflow__body dc__border-n1 bc-n50 dc__overflow-scroll br-4'}
643643
>
644-
{this.props.nodes.length === 0 ? (
644+
{this.props.nodes.length === 0 && this.props.isJobView ? (
645645
this.emptyWorkflow()
646646
) : (
647647
<svg x={this.props.startX} y={0} height={this.props.height} width={this.props.width}>

0 commit comments

Comments
 (0)