AdminSettings: restore location name display in dropdown

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-07 13:14:11 +00:00
parent 4e5a9f6466
commit dd022f80bb

View file

@ -108,7 +108,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o
const [testing, setTesting] = useState(false) const [testing, setTesting] = useState(false)
const [testResult, setTestResult] = useState<{ ok: boolean; error?: string } | null>(null) const [testResult, setTestResult] = useState<{ ok: boolean; error?: string } | null>(null)
const [enabled, setEnabled] = useState(integration.enabled) const [enabled, setEnabled] = useState(integration.enabled)
const [wfLocations, setWfLocations] = useState<{ id: string; name: string; team_names: string[] }[]>([]) const [wfLocations, setWfLocations] = useState<{ id: string; name: string; short_name: string | null }[]>([])
const [fetchingLocs, setFetchingLocs] = useState(false) const [fetchingLocs, setFetchingLocs] = useState(false)
const [locError, setLocError] = useState<string | null>(null) const [locError, setLocError] = useState<string | null>(null)
@ -203,7 +203,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o
<option value=""> Select location </option> <option value=""> Select location </option>
{wfLocations.map(l => ( {wfLocations.map(l => (
<option key={l.id} value={l.id}> <option key={l.id} value={l.id}>
{l.id} {l.team_names.slice(0, 3).join(', ')}{l.team_names.length > 3 ? '…' : ''} {l.name}{l.short_name ? ` (${l.short_name})` : ''}
</option> </option>
))} ))}
{wfLocations.length === 0 && form[k] && ( {wfLocations.length === 0 && form[k] && (