Resolve dispatch line error.

This commit is contained in:
Patrick Fic
2023-08-11 10:30:17 -07:00
parent 01328ba33c
commit e19e3865e7
2 changed files with 13 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ export function JobLineLocationPopup({ bodyshop, jobline, disabled }) {
>
<Space wrap>
{jobline.location}
{jobline.parts_dispatch_lines.length > 0 && "-Disp"}
{jobline.parts_dispatch_lines?.length > 0 && "-Disp"}
</Space>
</div>
);

View File

@@ -913,6 +913,18 @@ export const QUERY_JOB_CARD_DETAILS = gql`
ioucreated
convertedtolbr
critical
parts_dispatch_lines {
id
accepted_at
quantity
parts_dispatch {
id
employeeid
dispatched_at
dispatched_by
number
}
}
}
owner {
id