WORKFLOW-APP/app/directors
Ysterbaard 7f0337a39c Fix list page modal not refetching after save
When the edit modal was opened from /companies or /directors (the
list pages) and the user saved, the modal called
onAfterSave={() => {}} — an empty handler. The modal also fired
qc.invalidateQueries(['pb-list', collection]), but the list
page's queryKey is ['companies', ...] (or ['directors', ...]),
not ['pb-list', ...]. So the list page never re-fetched.

Result: stale row data persisted in the list state. Re-opening
the modal showed the original values, making it look like the
save hadn't taken effect (it had — the data was in PB; the list
just didn't know about it).

Fix: wire onAfterSave to the existing refreshAll() helper in
both list pages so the list refetches from PB and the local
editingCompany/editingDirector state stays in sync.
2026-08-19 11:42:02 +02:00
..
[id] Add onboarding form fields to companies + directors (visual + editable) 2026-08-18 12:25:06 +02:00
DirectorExplorer.tsx Fix list page modal not refetching after save 2026-08-19 11:42:02 +02:00
page.tsx Add native Share button to registration link dialog 2026-07-30 16:38:05 +02:00