chore: draft issue quick action menu validation (#4918)
This commit is contained in:
parent
04eca3c9aa
commit
b6cf177630
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue