[WEB-4359] fix: application crash when creating work item via quick add (#7245)
This commit is contained in:
parent
c3c1aef7a9
commit
f26b4d3d06
2 changed files with 6 additions and 1 deletions
|
|
@ -146,6 +146,11 @@ export const createIssuePayload: (projectId: string, formData: Partial<TIssue>)
|
||||||
id: uuidv4(),
|
id: uuidv4(),
|
||||||
project_id: projectId,
|
project_id: projectId,
|
||||||
priority: "none",
|
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 is used for optimistic updates. It is not a part of the API response.
|
||||||
tempId: uuidv4(),
|
tempId: uuidv4(),
|
||||||
// to be overridden by the form data
|
// to be overridden by the form data
|
||||||
|
|
|
||||||
|
|
@ -503,7 +503,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
|
||||||
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="labels">
|
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="labels">
|
||||||
<IssuePropertyLabels
|
<IssuePropertyLabels
|
||||||
projectId={issue?.project_id || null}
|
projectId={issue?.project_id || null}
|
||||||
value={issue?.label_ids || null}
|
value={issue?.label_ids || []}
|
||||||
defaultOptions={defaultLabelOptions}
|
defaultOptions={defaultLabelOptions}
|
||||||
onChange={handleLabel}
|
onChange={handleLabel}
|
||||||
disabled={isReadOnly}
|
disabled={isReadOnly}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue