mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix(frontend): match settings by integration ID
This commit is contained in:
1 parent
3b91c2f1a2
commit
f1868ad3e3
1 file changed
+4
-3
@@ -45,10 +45,11 @@ function buildProviderEntries(
|
||||
const entries: ProviderEntry[] = []
|
||||
|
||||
for (const provider of providers ?? []) {
|
||||
const integration = integrationsByID.get(provider.id)
|
||||
seen.add(provider.id)
|
||||
const integrationID = provider.integrationID ?? provider.id
|
||||
const integration = integrationsByID.get(integrationID)
|
||||
seen.add(integrationID)
|
||||
entries.push({
|
||||
id: provider.id,
|
||||
id: integrationID,
|
||||
name: integration?.name || provider.name || provider.id,
|
||||
models: provider.models,
|
||||
methods: integration?.methods ?? [],
|
||||
|
||||
Reference in new issue
Block a user