Sync: Community Changes #3469

Sync: Community Changes
This commit is contained in:
pushya22
2025-06-20 15:26:25 +05:30
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -146,6 +146,11 @@ export const createIssuePayload: (projectId: string, formData: Partial<TIssue>)
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

View File

@@ -503,7 +503,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
<WithDisplayPropertiesHOC displayProperties={displayProperties} displayPropertyKey="labels">
<IssuePropertyLabels
projectId={issue?.project_id || null}
value={issue?.label_ids || null}
value={issue?.label_ids || []}
defaultOptions={defaultLabelOptions}
onChange={handleLabel}
disabled={isReadOnly}