π₯π₯π₯ 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: converted and handled the estimate type to lowercase in the store (#5011)
guru_sainath83587c2c6bbd
diff --git a/web/core/store/estimates/project-estimate.store.ts b/web/core/store/estimates/project-estimate.store.tsindex 12d896dcb5..5c0607e2f7 100644--- a/web/core/store/estimates/project-estimate.store.ts+++ b/web/core/store/estimates/project-estimate.store.ts@@ -5,7 +5,7 @@ import update from "lodash/update";import { action, computed, makeObservable, observable, runInAction } from "mobx";import { computedFn } from "mobx-utils";// types-import { IEstimate as IEstimateType, IEstimateFormData } from "@plane/types";+import { IEstimate as IEstimateType, IEstimateFormData, TEstimateSystemKeys } from "@plane/types";// plane web servicesimport estimateService from "@/plane-web/services/project/estimate.service";// plane web store@@ -163,7 +163,12 @@ export class ProjectEstimateStore implements IProjectEstimateStore {if (estimates && estimates.length > 0) {runInAction(() => {estimates.forEach((estimate) => {- if (estimate.id) set(this.estimates, [estimate.id], new Estimate(this.store, estimate));+ if (estimate.id)+ set(+ this.estimates,+ [estimate.id],+ new Estimate(this.store, { ...estimate, type: estimate.type?.toLowerCase() as TEstimateSystemKeys })+ );});});}@@ -198,7 +203,12 @@ export class ProjectEstimateStore implements IProjectEstimateStore {if (estimates && estimates.length > 0) {runInAction(() => {estimates.forEach((estimate) => {- if (estimate.id) set(this.estimates, [estimate.id], new Estimate(this.store, estimate));+ if (estimate.id)+ set(+ this.estimates,+ [estimate.id],+ new Estimate(this.store, { ...estimate, type: estimate.type?.toLowerCase() as TEstimateSystemKeys })+ );});});}@@ -235,7 +245,11 @@ export class ProjectEstimateStore implements IProjectEstimateStore {if (estimate.id)update(this.estimates, [estimate.id], (estimateStore) => {if (estimateStore) estimateStore.updateEstimate(estimate);- else return new Estimate(this.store, estimate);+ else+ return new Estimate(this.store, {+ ...estimate,+ type: estimate.type?.toLowerCase() as TEstimateSystemKeys,+ });});});}@@ -272,7 +286,12 @@ export class ProjectEstimateStore implements IProjectEstimateStore {// estimate: estimate.id,// });runInAction(() => {- if (estimate.id) set(this.estimates, [estimate.id], new Estimate(this.store, estimate));+ if (estimate.id)+ set(+ this.estimates,+ [estimate.id],+ new Estimate(this.store, { ...estimate, type: estimate.type?.toLowerCase() as TEstimateSystemKeys })+ );});}