Skip to content

Empty values passed to DetailText component break whole detail page #13547

@richard-cox

Description

@richard-cox

Setup

  • Rancher version: v2.11.0 (dev of)

Describe the bug

  • DetailText compoentn is used to show additional info in the header area of a resource detail page
  • it's used in resources configmap, secret and token, as well as showing resource annotations
  • if an empty value is passed in the whole page will fail to render (given undefined error

To Reproduce

  • Use rancher/rancher:v2.12.0-alpha11 image (before the latest detail page changes were added)
  • nav to cluster --> Import YAML
  • Paste in (remove or update namespace as per target cluste)
    • apiVersion: v1
      kind: Secret
      metadata:
        annotations:
          kubernetes.io/service-account.name: v2
        name: v2
        namespace: junk
      type: kubernetes.io/service-account-token
      
  • Click Import
  • Navigate to the detail page of the new resource

Result

  • see screenshot, no main body

Expected Result

  • see second screenshot

Screenshots
Bug

Image

Expected

Image

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions