chore: draft issue quick action menu validation (#4918)

This commit is contained in:
Anmol Singh Bhatia 2024-06-24 17:54:57 +05:30 committed by GitHub
parent 04eca3c9aa
commit b6cf177630
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,11 @@ export const DraftIssueQuickActions: React.FC<IQuickActionProps> = observer((pro
},
];
// check if any of the menu items should render
const shouldRenderQuickAction = MENU_ITEMS.some((item) => item.shouldRender);
if (!shouldRenderQuickAction) return <></>;
return (
<>
<DeleteIssueModal