Skip to content

Conversation

@Rameshkumar31595
Copy link

This PR fixes issue #32825 by deduplicating sidebar context menu links before rendering.
It removes duplicate “status” entries such as “1 story with warnings” while preserving the menu order.
Fixes: #32825

@Rameshkumar31595
Copy link
Author

Rameshkumar31595 commented Oct 30, 2025

Hi everyone

This PR fixes #32825
.

The duplication in the sidebar context menu was caused by repeated status aggregation ... both summary and individual story statuses were being shown.

The fix introduces a deduplication step in ContextMenu.tsx using a Map to filter out repeated link IDs while preserving order.

Verified — duplicate “status” items (e.g. “1 story with warnings”) are now removed.
Implementation follows @dosubot’s earlier analysis.
Builds successfully and maintains the original structure and behavior.

@storybookjs/core kindly requesting review whenever you get a chance and consider merging

Thanks for maintaining this amazing project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Remove duplicate status items in context menu

1 participant