fix minor build errors

This commit is contained in:
rahulramesha 2024-03-27 15:02:31 +05:30
parent 3e55490bbd
commit d354ff9a1a
9 changed files with 10 additions and 10 deletions

View File

@ -35,7 +35,6 @@ export const CycleKanBanLayout: React.FC = observer(() => {
return ( return (
<BaseKanBanRoot <BaseKanBanRoot
showLoader
QuickActions={CycleIssueQuickActions} QuickActions={CycleIssueQuickActions}
viewId={cycleId?.toString() ?? ""} viewId={cycleId?.toString() ?? ""}
storeType={EIssuesStoreType.CYCLE} storeType={EIssuesStoreType.CYCLE}

View File

@ -7,5 +7,5 @@ import { BaseKanBanRoot } from "../base-kanban-root";
export interface IKanBanLayout {} export interface IKanBanLayout {}
export const DraftKanBanLayout: React.FC = observer(() => ( export const DraftKanBanLayout: React.FC = observer(() => (
<BaseKanBanRoot showLoader QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} /> <BaseKanBanRoot QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />
)); ));

View File

@ -21,7 +21,6 @@ export const ModuleKanBanLayout: React.FC = observer(() => {
return ( return (
<BaseKanBanRoot <BaseKanBanRoot
showLoader
QuickActions={ModuleIssueQuickActions} QuickActions={ModuleIssueQuickActions}
viewId={moduleId?.toString()} viewId={moduleId?.toString()}
storeType={EIssuesStoreType.MODULE} storeType={EIssuesStoreType.MODULE}

View File

@ -22,7 +22,6 @@ export const ProfileIssuesKanBanLayout: React.FC = observer(() => {
return ( return (
<BaseKanBanRoot <BaseKanBanRoot
showLoader
QuickActions={ProjectIssueQuickActions} QuickActions={ProjectIssueQuickActions}
storeType={EIssuesStoreType.PROFILE} storeType={EIssuesStoreType.PROFILE}
canEditPropertiesBasedOnProject={canEditPropertiesBasedOnProject} canEditPropertiesBasedOnProject={canEditPropertiesBasedOnProject}

View File

@ -8,5 +8,5 @@ import { EIssuesStoreType } from "@/constants/issue";
import { BaseKanBanRoot } from "../base-kanban-root"; import { BaseKanBanRoot } from "../base-kanban-root";
export const KanBanLayout: React.FC = observer(() => ( export const KanBanLayout: React.FC = observer(() => (
<BaseKanBanRoot showLoader QuickActions={ProjectIssueQuickActions} storeType={EIssuesStoreType.PROJECT} /> <BaseKanBanRoot QuickActions={ProjectIssueQuickActions} storeType={EIssuesStoreType.PROJECT} />
)); ));

View File

@ -16,7 +16,6 @@ export const ProjectViewKanBanLayout: React.FC = observer(() => {
return ( return (
<BaseKanBanRoot <BaseKanBanRoot
showLoader
QuickActions={ProjectIssueQuickActions} QuickActions={ProjectIssueQuickActions}
storeType={EIssuesStoreType.PROJECT_VIEW} storeType={EIssuesStoreType.PROJECT_VIEW}
viewId={viewId?.toString()} viewId={viewId?.toString()}

View File

@ -21,7 +21,7 @@ export const SpreadsheetEstimateColumn: React.FC<Props> = observer((props: Props
onChange={(data) => onChange={(data) =>
onChange(issue, { estimate_point: data }, { changed_property: "estimate_point", change_details: data }) onChange(issue, { estimate_point: data }, { changed_property: "estimate_point", change_details: data })
} }
projectId={issue.project_id} projectId={issue.project_id ?? undefined}
disabled={disabled} disabled={disabled}
buttonVariant="transparent-with-text" buttonVariant="transparent-with-text"
buttonClassName="rounded-none text-left" buttonClassName="rounded-none text-left"

View File

@ -464,7 +464,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
debouncedUpdatesEnabled={false} debouncedUpdatesEnabled={false}
value={ value={
!value || value === "" || (typeof value === "object" && Object.keys(value).length === 0) !value || value === "" || (typeof value === "object" && Object.keys(value).length === 0)
? watch("description_html") ? watch("description_html") ?? ""
: value : value
} }
initialValue={data?.description_html} initialValue={data?.description_html}

View File

@ -122,7 +122,9 @@ export class IssueSubIssuesStore implements IIssueSubIssuesStore {
// fetch other issues states and members when sub-issues are from different project // fetch other issues states and members when sub-issues are from different project
if (subIssues && subIssues.length > 0) { if (subIssues && subIssues.length > 0) {
const otherProjectIds = uniq(subIssues.map((issue) => issue.project_id).filter((id) => id !== projectId)); const otherProjectIds = uniq(
subIssues.map((issue) => issue.project_id).filter((id) => !!id && id !== projectId)
) as string[];
this.fetchOtherProjectProperties(workspaceSlug, otherProjectIds); this.fetchOtherProjectProperties(workspaceSlug, otherProjectIds);
} }
@ -152,7 +154,9 @@ export class IssueSubIssuesStore implements IIssueSubIssuesStore {
// fetch other issues states and members when sub-issues are from different project // fetch other issues states and members when sub-issues are from different project
if (subIssues && subIssues.length > 0) { if (subIssues && subIssues.length > 0) {
const otherProjectIds = uniq(subIssues.map((issue) => issue.project_id).filter((id) => id !== projectId)); const otherProjectIds = uniq(
subIssues.map((issue) => issue.project_id).filter((id) => !!id && id !== projectId)
) as string[];
this.fetchOtherProjectProperties(workspaceSlug, otherProjectIds); this.fetchOtherProjectProperties(workspaceSlug, otherProjectIds);
} }