Skip to content

Commit

Permalink
fix(dop): ticket turn to issue bug (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiahao-hjh authored Dec 9, 2021
1 parent 4c3d353 commit 6c1858c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,12 @@ export const EditIssueDrawer = (props: IProps) => {
};

const addRelation = (val: number) => {
addIssueRelation({ relatedIssues: val, id: issueDetail.id, projectId: +addRelatedMattersProjectId }).then(() => {
addIssueRelation({
relatedIssues: val,
id: issueDetail.id,
projectId: +addRelatedMattersProjectId,
type: 'connection',
}).then(() => {
setHasEdited(true);
const refObj = ref.current as any;
if (ref && refObj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const IssueIcon = ({ type, iconMap = 'TYPE', withName = false, ...rest }:
const iconObj = type && ICON_MAP[iconMap][type.toLocaleUpperCase()];
if (!iconObj) return null;
const { iconLabel, icon } = iconObj || {};
return withName ? iconLabel : React.cloneElement(icon, rest);
return withName ? iconLabel : React.cloneElement(icon || <></>, rest);
};

export const getIssueTypeOption = (currentIssueType?: string) =>
Expand Down

0 comments on commit 6c1858c

Please sign in to comment.