π₯π₯π₯ 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: bug fixes & improvements (#3159)
Lakhan Bahetic9792da4a131
diff --git a/web/components/issues/select/cycle.tsx b/web/components/issues/select/cycle.tsxindex 2a9f4ee11d..1c6921f26e 100644--- a/web/components/issues/select/cycle.tsx+++ b/web/components/issues/select/cycle.tsx@@ -34,7 +34,7 @@ export const IssueCycleSelect: React.FC<IssueCycleSelectProps> = observer((propsif (workspaceSlug && projectId) cycleStore.fetchCycles(workspaceSlug, projectId, "all");};- const cycles = cycleStore.projectCycles;+ const cycles = cycleStore.cycles?.[projectId]?.["all"] ?? [];const selectedCycle = cycles ? cycles?.find((i) => i.id === value) : undefined;diff --git a/web/store/issues/global/issue.store.ts b/web/store/issues/global/issue.store.tsindex 5610705b7a..d4eb119af4 100644--- a/web/store/issues/global/issue.store.ts+++ b/web/store/issues/global/issue.store.ts@@ -182,6 +182,12 @@ export class GlobalIssuesStore extends IssueBaseStore implements IGlobalIssuesStconst response = await this.issueService.patchIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[workspaceViewId][issueId] = { ..._issues[workspaceViewId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, workspaceViewId, "mutation");diff --git a/web/store/issues/project-issues/cycle/issue.store.ts b/web/store/issues/project-issues/cycle/issue.store.tsindex 7670009029..b5c0088bd3 100644--- a/web/store/issues/project-issues/cycle/issue.store.ts+++ b/web/store/issues/project-issues/cycle/issue.store.ts@@ -239,6 +239,12 @@ export class CycleIssuesStore extends IssueBaseStore implements ICycleIssuesStorconst response = await this.rootStore.projectIssues.updateIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[cycleId][issueId] = { ..._issues[cycleId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, projectId, "mutation", cycleId);diff --git a/web/store/issues/project-issues/draft/issue.store.ts b/web/store/issues/project-issues/draft/issue.store.tsindex 31610dad20..90a6f63c7d 100644--- a/web/store/issues/project-issues/draft/issue.store.ts+++ b/web/store/issues/project-issues/draft/issue.store.ts@@ -158,6 +158,12 @@ export class ProjectDraftIssuesStore extends IssueBaseStore implements IProjectDconst response = await this.issueDraftService.updateDraftIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[projectId][issueId] = { ..._issues[projectId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, projectId, "mutation");diff --git a/web/store/issues/project-issues/module/issue.store.ts b/web/store/issues/project-issues/module/issue.store.tsindex 0f7fcae5b2..b49ba61508 100644--- a/web/store/issues/project-issues/module/issue.store.ts+++ b/web/store/issues/project-issues/module/issue.store.ts@@ -231,6 +231,12 @@ export class ModuleIssuesStore extends IssueBaseStore implements IModuleIssuesStconst response = await this.rootStore.projectIssues.updateIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[moduleId][issueId] = { ..._issues[moduleId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, projectId, "mutation", moduleId);diff --git a/web/store/issues/project-issues/project-view/issue.store.ts b/web/store/issues/project-issues/project-view/issue.store.tsindex c3562078af..7110c1dab5 100644--- a/web/store/issues/project-issues/project-view/issue.store.ts+++ b/web/store/issues/project-issues/project-view/issue.store.ts@@ -163,6 +163,12 @@ export class ViewIssuesStore extends IssueBaseStore implements IViewIssuesStoreconst response = await this.issueService.patchIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[projectId][issueId] = { ..._issues[projectId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, projectId, "mutation");diff --git a/web/store/issues/project-issues/project/issue.store.ts b/web/store/issues/project-issues/project/issue.store.tsindex 8b80751797..25ec450ca0 100644--- a/web/store/issues/project-issues/project/issue.store.ts+++ b/web/store/issues/project-issues/project/issue.store.ts@@ -163,6 +163,12 @@ export class ProjectIssuesStore extends IssueBaseStore implements IProjectIssuesconst response = await this.issueService.patchIssue(workspaceSlug, projectId, issueId, data);+ runInAction(() => {+ _issues = { ...this.issues };+ _issues[projectId][issueId] = { ..._issues[projectId][issueId], ...response };+ this.issues = _issues;+ });+return response;} catch (error) {this.fetchIssues(workspaceSlug, projectId, "mutation");