Number of branch should not be 0 if the Pipeline is not a multi-branch Pipeline
Describe the bug
Number of branch should not be 0 if the Pipeline is not a multi-branch Pipeline.
Versions used(KubeSphere/Kubernetes)
KubeSphere: v3.2.0-rc.1
Kubernetes: 1.21.5
To Reproduce Steps to reproduce the behavior:
- Go to Pipelines page
- Create a simple Pipeline
- See error
Expected behavior
Number of branch should be -
if the Pipeline is not a multi-branch Pipeline.