Skip to content

Can I change the condition for displaying the "Example Dropdown" in the "Response Sample" section to when there is more than one example? #2675

Open
@fhdufhdu

Description

@fhdufhdu

Describe the problem to be solved
The 'Example Dropdown' does not appear when there is only one example, which is very inconvenient. Currently, the condition is set to display only when there are more than one example. Would it be okay to change this to display when there is at least one example? I found the relevant code in MediaTypeSample.tsx.

Describe the solution you'd like
Modify the condition in MediaTypeSample.tsx.

Describe alternatives you've considered
Nothing

Additional context

  • AS_IS
    Image

  • TO_BE
    Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions