π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: profile issue application error (#3496)
Anmol Singh Bhatia61f92563a931
diff --git a/web/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx b/web/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsxindex 4b3f3fe830..2e189c9f4f 100644--- a/web/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx+++ b/web/components/issues/issue-layouts/kanban/roots/profile-issues-root.tsx@@ -28,7 +28,7 @@ export const ProfileIssuesKanBanLayout: React.FC = observer(() => {[EIssueActions.UPDATE]: async (issue: TIssue) => {if (!workspaceSlug || !userId) return;- await issues.updateIssue(workspaceSlug, userId, issue.id, issue);+ await issues.updateIssue(workspaceSlug, issue.project_id, issue.id, issue, userId);},[EIssueActions.DELETE]: async (issue: TIssue) => {if (!workspaceSlug || !userId) return;diff --git a/web/components/issues/issue-layouts/list/roots/profile-issues-root.tsx b/web/components/issues/issue-layouts/list/roots/profile-issues-root.tsxindex 1e7e364d54..91e80382a6 100644--- a/web/components/issues/issue-layouts/list/roots/profile-issues-root.tsx+++ b/web/components/issues/issue-layouts/list/roots/profile-issues-root.tsx@@ -29,7 +29,7 @@ export const ProfileIssuesListLayout: FC = observer(() => {[EIssueActions.UPDATE]: async (issue: TIssue) => {if (!workspaceSlug || !userId) return;- await issues.updateIssue(workspaceSlug, userId, issue.id, issue);+ await issues.updateIssue(workspaceSlug, issue.project_id, issue.id, issue, userId);},[EIssueActions.DELETE]: async (issue: TIssue) => {if (!workspaceSlug || !userId) return;diff --git a/web/components/issues/issue-layouts/properties/labels.tsx b/web/components/issues/issue-layouts/properties/labels.tsxindex 0a33ed886f..0f121bed79 100644--- a/web/components/issues/issue-layouts/properties/labels.tsx+++ b/web/components/issues/issue-layouts/properties/labels.tsx@@ -82,17 +82,17 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((proif (storeLabels && storeLabels.length > 0) projectLabels = storeLabels;const options = projectLabels.map((label) => ({- value: label.id,- query: label.name,+ value: label?.id,+ query: label?.name,content: (<div className="flex items-center justify-start gap-2 overflow-hidden"><spanclassName="h-2.5 w-2.5 flex-shrink-0 rounded-full"style={{- backgroundColor: label.color,+ backgroundColor: label?.color,}}/>- <div className="line-clamp-1 inline-block truncate">{label.name}</div>+ <div className="line-clamp-1 inline-block truncate">{label?.name}</div></div>),}));@@ -106,11 +106,11 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((provalue.length <= maxRender ? (<>{projectLabels- ?.filter((l) => value.includes(l.id))+ ?.filter((l) => value.includes(l?.id)).map((label) => (- <Tooltip position="top" tooltipHeading="Labels" tooltipContent={label.name ?? ""}>+ <Tooltip position="top" tooltipHeading="Labels" tooltipContent={label?.name ?? ""}><div- key={label.id}+ key={label?.id}className={`flex overflow-hidden hover:bg-custom-background-80 ${!disabled && "cursor-pointer"} h-full max-w-full flex-shrink-0 items-center rounded border-[0.5px] border-custom-border-300 px-2.5 py-1 text-xs`}@@ -122,7 +122,7 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((probackgroundColor: label?.color ?? "#000000",}}/>- <div className="line-clamp-1 inline-block w-auto max-w-[100px] truncate">{label.name}</div>+ <div className="line-clamp-1 inline-block w-auto max-w-[100px] truncate">{label?.name}</div></div></div></Tooltip>@@ -138,8 +138,8 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((proposition="top"tooltipHeading="Labels"tooltipContent={projectLabels- ?.filter((l) => value.includes(l.id))- .map((l) => l.name)+ ?.filter((l) => value.includes(l?.id))+ .map((l) => l?.name).join(", ")}><div className="flex h-full items-center gap-1.5 text-custom-text-200">diff --git a/web/components/project/sidebar-list.tsx b/web/components/project/sidebar-list.tsxindex 24735e5060..5452c861df 100644--- a/web/components/project/sidebar-list.tsx+++ b/web/components/project/sidebar-list.tsx@@ -206,7 +206,7 @@ export const ProjectSidebarList: FC = observer(() => {type="button"className="group flex w-full items-center gap-1 whitespace-nowrap rounded px-1.5 text-left text-sm font-semibold text-custom-sidebar-text-400 hover:bg-custom-sidebar-background-80">- Projects+ Your projects{open ? (<ChevronDown className="h-3.5 w-3.5" />) : (