Skip to content

StateLabel does not render if the status prop is undefined #2955

Closed
@mperrotti

Description

@mperrotti

Description

status is typed as an optional prop for StateLabel, but the component will not render at all if it's not passed

I'd expect status to be a required prop if it cannot in fact be left blank.

Steps to reproduce

  • Render <StateLabel>Label</StateLabel>
  • See that it doesn't render

Version

v35.20.0

Browser

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions