From fd72d244e731186b03a0eed9a047d8488f1d4590 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 26 May 2026 12:24:56 -0400 Subject: [PATCH] feature/IO-3541-Parts-Dispatch-Return-Data - Add Refetech queries to keep data in sync --- .../job-line-dispatch-button.component.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/job-line-dispatch-button/job-line-dispatch-button.component.jsx b/client/src/components/job-line-dispatch-button/job-line-dispatch-button.component.jsx index f8af2e2b8..669c63db7 100644 --- a/client/src/components/job-line-dispatch-button/job-line-dispatch-button.component.jsx +++ b/client/src/components/job-line-dispatch-button/job-line-dispatch-button.component.jsx @@ -63,7 +63,9 @@ export function JobLineDispatchButton({ } } //joblineids: selectedLines.map((l) => l.id), - } + }, + refetchQueries: ["QUERY_PARTS_BILLS_BY_JOBID", "GET_JOB_BY_PK"], + awaitRefetchQueries: true }); if (result.errors) { console.log("🚀 ~ handleConvert ~ result.errors:", result.errors);