style: spreadsheet columns (#2554)

* style: spreadsheet columns

* fix: build errors
This commit is contained in:
Aaryan Khandelwal 2023-10-31 12:18:04 +05:30 committed by GitHub
parent cb533849e8
commit 442c83eea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 171 additions and 263 deletions

View file

@ -22,10 +22,10 @@ import { IInboxIssue, IIssue } from "types";
const defaultValues: Partial<IInboxIssue> = {
name: "",
description_html: "",
assignees_list: [],
assignees: [],
priority: "low",
target_date: new Date().toString(),
labels_list: [],
labels: [],
};
export const InboxMainContent: React.FC = observer(() => {
@ -122,8 +122,8 @@ export const InboxMainContent: React.FC = observer(() => {
reset({
...issueDetails,
assignees_list: issueDetails.assignees_list ?? (issueDetails.assignee_details ?? []).map((user) => user.id),
labels_list: issueDetails.labels_list ?? issueDetails.labels,
assignees: issueDetails.assignees ?? (issueDetails.assignee_details ?? []).map((user) => user.id),
labels: issueDetails.labels ?? issueDetails.labels,
});
}, [issueDetails, reset, inboxIssueId]);