From f26b4d3d068a7232be1a1cfb5d83b9b5d5c837e4 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 20 Jun 2025 15:16:16 +0530 Subject: [PATCH] [WEB-4359] fix: application crash when creating work item via quick add (#7245) --- packages/utils/src/work-item/base.ts | 5 +++++ .../issues/issue-layouts/properties/all-properties.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/utils/src/work-item/base.ts b/packages/utils/src/work-item/base.ts index 6a7068928..7ebca1ffd 100644 --- a/packages/utils/src/work-item/base.ts +++ b/packages/utils/src/work-item/base.ts @@ -146,6 +146,11 @@ export const createIssuePayload: (projectId: string, formData: Partial) id: uuidv4(), project_id: projectId, priority: "none", + label_ids: [], + assignee_ids: [], + sub_issues_count: 0, + attachment_count: 0, + link_count: 0, // tempId is used for optimistic updates. It is not a part of the API response. tempId: uuidv4(), // to be overridden by the form data diff --git a/web/core/components/issues/issue-layouts/properties/all-properties.tsx b/web/core/components/issues/issue-layouts/properties/all-properties.tsx index 877aa85d9..3b7e5c90b 100644 --- a/web/core/components/issues/issue-layouts/properties/all-properties.tsx +++ b/web/core/components/issues/issue-layouts/properties/all-properties.tsx @@ -503,7 +503,7 @@ export const IssueProperties: React.FC = observer((props) => {