{issueDetail.parent !== null && issueDetail.parent !== "" ? (
) : null}
{subIssues && subIssues.length > 0 ? (
{({ open }) => (
<>
Sub-issues{" "}
{subIssues.length}
{open ? (
setIsAddAsSubIssueOpen(true)}>
Add an existing issue
) : null}
{subIssues.map((subIssue) => (
))}
>
)}
) : (
Add sub-issue
>
}
optionsPosition="left"
noBorder
>
{
setIsOpen(true);
setPreloadedData({
parent: issueDetail.id,
actionType: "createIssue",
});
}}
>
Create new
{
setIsAddAsSubIssueOpen(true);
setPreloadedData({
parent: issueDetail.id,
actionType: "createIssue",
});
}}
>
Add an existing issue
)}