IO-2692 Refetch POL on CM received.
This commit is contained in:
@@ -239,6 +239,7 @@ function BillEnterModalContainer({
|
|||||||
if (markPolReceived && markPolReceived.length > 0) {
|
if (markPolReceived && markPolReceived.length > 0) {
|
||||||
const r2 = await updatePartsOrderLines({
|
const r2 = await updatePartsOrderLines({
|
||||||
variables: {partsLineIds: markPolReceived.map((p) => p.id)},
|
variables: {partsLineIds: markPolReceived.map((p) => p.id)},
|
||||||
|
refetchQueries: ["QUERY_PARTS_BILLS_BY_JOBID" ],
|
||||||
});
|
});
|
||||||
if (!!r2.errors) {
|
if (!!r2.errors) {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user