mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
fix issue
This commit is contained in:
@@ -147,6 +147,12 @@ export function useBookingWindowSocket(enabled: boolean = true) {
|
||||
void qc.invalidateQueries({
|
||||
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.batchBoardDetail(event.scheduleId),
|
||||
});
|
||||
// Same for the schedule detail page (workspace tab countdown reads
|
||||
// windowPhase/paymentPhaseEndsAt from it) — without this the page shows
|
||||
// the OLD phase's expired countdown through the whole import cycle.
|
||||
void qc.invalidateQueries({
|
||||
queryKey: QUERY_KEYS.TRAIN_SCHEDULING.scheduleById(event.scheduleId),
|
||||
});
|
||||
|
||||
// Always refresh the batch board (different shape, not patched). When the
|
||||
// schedule wasn't in any window list either, refresh those too so a newly
|
||||
|
||||
Reference in New Issue
Block a user