AdminSettings: restore location name display in dropdown
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4e5a9f6466
commit
dd022f80bb
1 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o
|
|||
const [testing, setTesting] = useState(false)
|
||||
const [testResult, setTestResult] = useState<{ ok: boolean; error?: string } | null>(null)
|
||||
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 [locError, setLocError] = useState<string | null>(null)
|
||||
|
||||
|
|
@ -203,7 +203,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o
|
|||
<option value="">— Select location —</option>
|
||||
{wfLocations.map(l => (
|
||||
<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>
|
||||
))}
|
||||
{wfLocations.length === 0 && form[k] && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue