Update logic to ensure removed lines are always ignored. IO-733
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { GET_JOB_LINES_BY_PK } from "../../graphql/jobs-lines.queries";
|
||||
import { GET_ALL_JOBLINES_BY_PK } from "../../graphql/jobs-lines.queries";
|
||||
import { gql } from "@apollo/client";
|
||||
import _ from "lodash";
|
||||
|
||||
@@ -8,7 +8,7 @@ export const GetSupplementDelta = async (client, jobId, newLines) => {
|
||||
const {
|
||||
data: { joblines: existingLinesFromDb },
|
||||
} = await client.query({
|
||||
query: GET_JOB_LINES_BY_PK,
|
||||
query: GET_ALL_JOBLINES_BY_PK,
|
||||
variables: { id: jobId },
|
||||
});
|
||||
const existingLines = _.cloneDeep(existingLinesFromDb);
|
||||
|
||||
Reference in New Issue
Block a user