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);
|
||||
|
||||
@@ -10,6 +10,7 @@ export default function PartnerPingComponent() {
|
||||
// Create an scoped async function in the hook
|
||||
async function checkPartnerStatus() {
|
||||
try {
|
||||
if (process.env.NODE_ENV === "development") return;
|
||||
const PartnerResponse = await axios.post("http://localhost:1337/ping/");
|
||||
const { appver, qbpath } = PartnerResponse.data;
|
||||
console.log({ appver, qbpath });
|
||||
|
||||
Reference in New Issue
Block a user