diff --git a/src/components/berths/berth-tabs.tsx b/src/components/berths/berth-tabs.tsx index d8150c20..97590147 100644 --- a/src/components/berths/berth-tabs.tsx +++ b/src/components/berths/berth-tabs.tsx @@ -117,7 +117,11 @@ function useBerthPatch(berthId: string) { body: patch, }), onSuccess: () => { - qc.invalidateQueries({ queryKey: ['berths', berthId] }); + // Detail page query is keyed `['berth', berthId]` (singular); the + // list query is `['berths']` (plural). Invalidate both so inline + // edits on the detail Overview tab refresh the visible value + // even when Socket.IO realtime isn't running (dev / no-ws envs). + qc.invalidateQueries({ queryKey: ['berth', berthId] }); qc.invalidateQueries({ queryKey: ['berths'] }); }, });