diff --git a/packages/types/src/issues/issue.d.ts b/packages/types/src/issues/issue.d.ts index 577b865c1f1..c9cd133ef06 100644 --- a/packages/types/src/issues/issue.d.ts +++ b/packages/types/src/issues/issue.d.ts @@ -1,7 +1,7 @@ -import { TIssuePriorities } from "../issues"; -import { TIssueAttachment } from "./issue_attachment"; -import { TIssueLink } from "./issue_link"; -import { TIssueReaction } from "./issue_reaction"; +import {TIssuePriorities} from "../issues"; +import {TIssueAttachment} from "./issue_attachment"; +import {TIssueLink} from "./issue_link"; +import {TIssueReaction} from "./issue_reaction"; // new issue structure types @@ -42,13 +42,10 @@ export type TBaseIssue = { export type TIssue = TBaseIssue & { description_html?: string; is_subscribed?: boolean; - - parent?: partial; - + parent?: Partial; issue_reactions?: TIssueReaction[]; issue_attachment?: TIssueAttachment[]; issue_link?: TIssueLink[]; - // tempId is used for optimistic updates. It is not a part of the API response. tempId?: string; }; @@ -94,6 +91,9 @@ export type TBulkIssueProperties = Pick< | "assignee_ids" | "start_date" | "target_date" + | "module_ids" + | "cycle_id" + | "estimate_point" >; export type TBulkOperationsPayload = { diff --git a/web/core/components/dropdowns/module/index.tsx b/web/core/components/dropdowns/module/index.tsx index 7b7635a327f..b26a5e0eddf 100644 --- a/web/core/components/dropdowns/module/index.tsx +++ b/web/core/components/dropdowns/module/index.tsx @@ -36,7 +36,7 @@ type Props = TDropdownProps & { | { multiple: true; onChange: (val: string[]) => void; - value: string[]; + value: string[] | null; } ); @@ -139,7 +139,9 @@ const ButtonContent: React.FC = (props) => { return ( <> {!hideIcon && } - {!hideText && {value ?? placeholder}} + {!hideText && ( + {value ? getModuleById(value)?.name : placeholder} + )} {dropdownArrow && (