Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 17:32:18 +00:00
co-authored by renee-png
parent a646add008
commit f5517df765
@@ -676,11 +676,17 @@ export function CustomFormBuilder() {
if (selectedCaseId) {
customValues = await fetchCaseCustomValues(selectedCaseId);
}
// Always re-fetch the latest client custom values at render time so edits
// made in another tab show up without needing to reselect the client.
const freshClientCustomValues = client?.id
? await fetchClientCustomValues(client.id)
: {};
return {
client,
homeowner,
firmName: firm?.company_name ?? "",
customValues,
clientCustomValues: freshClientCustomValues,
fieldValues,
};
};