fix: show config name, not slug
This commit is contained in:
parent
097116a114
commit
8159ce6555
1 changed files with 6 additions and 3 deletions
|
|
@ -5,10 +5,10 @@ import React, { useEffect, useState } from "react";
|
|||
|
||||
import {
|
||||
getAccessToken,
|
||||
getOrganizationId,
|
||||
loadAuthConfig,
|
||||
getAssistantSlug,
|
||||
getOrganizationId,
|
||||
listUserOrganizations,
|
||||
loadAuthConfig,
|
||||
} from "../auth/workos.js";
|
||||
import { getApiClient } from "../config.js";
|
||||
import { env } from "../env.js";
|
||||
|
|
@ -79,7 +79,10 @@ const ConfigSelector: React.FC<ConfigSelectorProps> = ({
|
|||
});
|
||||
|
||||
return assistants.map((assistant) => {
|
||||
const displayName = `[${org.name}] ${assistant.ownerSlug}/${assistant.packageSlug}`;
|
||||
const name =
|
||||
(assistant.configResult.config as any)?.name ??
|
||||
`${assistant.ownerSlug}/${assistant.configResult.config}`;
|
||||
const displayName = `[${org.name}] ${name}`;
|
||||
// Create unique ID that includes org info to avoid conflicts
|
||||
const uniqueId = `${org.id || "personal"}-${assistant.packageSlug}`;
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue