Skip to content

[v11] Backport: Hide API tab when API page is not available #8465

@Coderxrohan

Description

@Coderxrohan

Describe the bug

This issue tracks the v11 backport of a bug that was originally reported and fixed in master.

Original issue: #8388

In PrimeReact v11 showcase, the API tab is rendered for components that do not have an API page (e.g. Tabs),
causing navigation to a non-existent /api route and resulting in a 404.

The fix hides the API tab when an API page is not available.

Reproducer

No response

System Information

NA

Steps to reproduce the behavior

No response

Expected behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions