IO-1693 Allow 0 line supplements.

This commit is contained in:
Patrick Fic
2022-03-16 11:47:32 -07:00
parent 279e93f0c3
commit 3439f09d9a
2 changed files with 14 additions and 7 deletions

View File

@@ -220,12 +220,13 @@ export function JobsAvailableContainer({
);
delete supp.joblines;
await client.mutate({
mutation: gql`
${suppDelta}
`,
});
if (suppDelta !== null) {
await client.mutate({
mutation: gql`
${suppDelta}
`,
});
}
const updateResult = await updateJob({
variables: {
jobId: selectedJob,