From 28e470433ab0813c2e27640fd0a48807a662abac Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 7 Jul 2026 13:03:57 +0000 Subject: [PATCH] AdminSettings: show error message when location fetch fails Co-Authored-By: Claude Sonnet 4.6 --- src/pages/AdminSettings.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/pages/AdminSettings.tsx b/src/pages/AdminSettings.tsx index b1a9c52..76ffdab 100644 --- a/src/pages/AdminSettings.tsx +++ b/src/pages/AdminSettings.tsx @@ -110,6 +110,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o const [enabled, setEnabled] = useState(integration.enabled) const [wfLocations, setWfLocations] = useState<{ id: string; name: string; short_name: string | null }[]>([]) const [fetchingLocs, setFetchingLocs] = useState(false) + const [locError, setLocError] = useState(null) function openForm() { const initial: Record = {} @@ -212,9 +213,17 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o + {locError && ( +
{locError}
+ )} ) }