mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix minor build errors
This commit is contained in:
parent
3e55490bbd
commit
d354ff9a1a
@ -35,7 +35,6 @@ export const CycleKanBanLayout: React.FC = observer(() => {
|
||||
|
||||
return (
|
||||
<BaseKanBanRoot
|
||||
showLoader
|
||||
QuickActions={CycleIssueQuickActions}
|
||||
viewId={cycleId?.toString() ?? ""}
|
||||
storeType={EIssuesStoreType.CYCLE}
|
||||
|
@ -7,5 +7,5 @@ import { BaseKanBanRoot } from "../base-kanban-root";
|
||||
export interface IKanBanLayout {}
|
||||
|
||||
export const DraftKanBanLayout: React.FC = observer(() => (
|
||||
<BaseKanBanRoot showLoader QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />
|
||||
<BaseKanBanRoot QuickActions={DraftIssueQuickActions} storeType={EIssuesStoreType.DRAFT} />
|
||||
));
|
||||
|
@ -21,7 +21,6 @@ export const ModuleKanBanLayout: React.FC = observer(() => {
|
||||
|
||||
return (
|
||||
<BaseKanBanRoot
|
||||
showLoader
|
||||
QuickActions={ModuleIssueQuickActions}
|
||||
viewId={moduleId?.toString()}
|
||||
storeType={EIssuesStoreType.MODULE}
|
||||
|
@ -22,7 +22,6 @@ export const ProfileIssuesKanBanLayout: React.FC = observer(() => {
|
||||
|
||||
return (
|
||||
<BaseKanBanRoot
|
||||
showLoader
|
||||
QuickActions={ProjectIssueQuickActions}
|
||||
storeType={EIssuesStoreType.PROFILE}
|
||||
canEditPropertiesBasedOnProject={canEditPropertiesBasedOnProject}
|
||||
|
@ -8,5 +8,5 @@ import { EIssuesStoreType } from "@/constants/issue";
|
||||
import { BaseKanBanRoot } from "../base-kanban-root";
|
||||
|
||||
export const KanBanLayout: React.FC = observer(() => (
|
||||
<BaseKanBanRoot showLoader QuickActions={ProjectIssueQuickActions} storeType={EIssuesStoreType.PROJECT} />
|
||||
<BaseKanBanRoot QuickActions={ProjectIssueQuickActions} storeType={EIssuesStoreType.PROJECT} />
|
||||
));
|
||||
|
@ -16,7 +16,6 @@ export const ProjectViewKanBanLayout: React.FC = observer(() => {
|
||||
|
||||
return (
|
||||
<BaseKanBanRoot
|
||||
showLoader
|
||||
QuickActions={ProjectIssueQuickActions}
|
||||
storeType={EIssuesStoreType.PROJECT_VIEW}
|
||||
viewId={viewId?.toString()}
|
||||
|
@ -21,7 +21,7 @@ export const SpreadsheetEstimateColumn: React.FC<Props> = observer((props: Props
|
||||
onChange={(data) =>
|
||||
onChange(issue, { estimate_point: data }, { changed_property: "estimate_point", change_details: data })
|
||||
}
|
||||
projectId={issue.project_id}
|
||||
projectId={issue.project_id ?? undefined}
|
||||
disabled={disabled}
|
||||
buttonVariant="transparent-with-text"
|
||||
buttonClassName="rounded-none text-left"
|
||||
|
@ -464,7 +464,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
||||
debouncedUpdatesEnabled={false}
|
||||
value={
|
||||
!value || value === "" || (typeof value === "object" && Object.keys(value).length === 0)
|
||||
? watch("description_html")
|
||||
? watch("description_html") ?? ""
|
||||
: value
|
||||
}
|
||||
initialValue={data?.description_html}
|
||||
|
@ -122,7 +122,9 @@ export class IssueSubIssuesStore implements IIssueSubIssuesStore {
|
||||
|
||||
// fetch other issues states and members when sub-issues are from different project
|
||||
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);
|
||||
}
|
||||
|
||||
@ -152,7 +154,9 @@ export class IssueSubIssuesStore implements IIssueSubIssuesStore {
|
||||
|
||||
// fetch other issues states and members when sub-issues are from different project
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user