Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update workorder interface #1064

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions libs/handoversidesheet/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,25 @@ export type HandoverUnsignedTask = {
} & HandoverChild;

export type HandoverWorkOrder = {
workOrderNumber: string;
workOrderId: string;
workOrderUrlId: string;
projectProgress: number | null;
title: string;
jobStatus: string;
materialStatus: string;
commissioningPackageUrl: string;
facility: string;
discipline: string;
workOrderUrl: string | null;
actualCompletionDate: string | null;
plannedFinishDate: string | null;
remainingHours: number | null;
estimatedHours: number | null;
responsible: string;
workBreakdownStructure: string;
commpkgId: string | null;
commissioningPackageUrlId: string | null;
commpkgNumber: string | null;
workOrderNumber: string
workOrderId: string
workOrderUrlId: string
projectProgress: number
title: string
jobStatus: string
materialStatus: string
commissioningPackageUrl: string
facility: string
discipline: string
workOrderUrl: string
actualCompletionDate: string
plannedFinishDate: string
remainingHours: number
estimatedHours: number
responsible: string
workBreakdownStructure: string
commpkgId: string
commissioningPackageUrlId: string
commpkgNumber: string
} & HandoverChild;

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
SwcrTab,
UnsignedActionTab,
UnsignedTaskTab,
WorkorderBase,
WorkorderTab,
useContextId,
} from '@cc-components/shared';
Expand Down Expand Up @@ -251,7 +250,7 @@ const HandoverSidesheetComponent = (props: Required<HandoverProps>) => {
</StyledPanel>
<StyledPanel>
<WorkorderTab
workorders={workOrderPackages}
workorders={(workOrderPackages ?? [])}
isFetching={isDataFetchingWorkOrder}
error={woError}
/>
Expand Down
Loading