Skip to content

Commit

Permalink
fix: handle nil value for repositories in pathTemplate (#484)
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <[email protected]>
  • Loading branch information
RokibulHasan7 authored and tamalsaha committed Sep 25, 2024
1 parent e2ab111 commit 4737cf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
priority: 3
type: string
- name: No. of Connected Repositories
pathTemplate: '{{ len .status.repositories }}'
pathTemplate: '{{ if .status.repositories }}{{ len .status.repositories }}{{ else }}0{{ end }}'
priority: 3
type: string
- color:
Expand All @@ -50,7 +50,7 @@ spec:
{{ end }}
{{- printf "%s" $color -}}
name: Status
pathTemplate: '{{ .status.phase}}'
pathTemplate: '{{ .status.phase }}'
priority: 3
type: string
- name: Age
Expand Down

0 comments on commit 4737cf1

Please sign in to comment.