fix lint errs

This commit is contained in:
Nate 2025-08-18 18:52:34 -07:00
parent 10f180c539
commit 43c8e8acf6
2 changed files with 4 additions and 5 deletions

View file

@ -119,7 +119,6 @@ const ConfigSelector: React.FC<ConfigSelectorProps> = ({
const assistantSlug = getAssistantSlug(authConfig);
if (assistantSlug) {
// Find the matching config by slug and organization
const packageSlug = assistantSlug.split("/")[1];
const matchingConfig = options.find(
(opt) =>
opt.type === "assistant" &&

View file

@ -94,7 +94,10 @@ export function useConfigSelector({
// If we need to switch organizations, we'll handle both org + config switching
// using a different approach to avoid duplicate reloads
if (config.organizationId !== currentOrgId) {
if (config.organizationId === currentOrgId) {
// Only config path is changing, no organization switch needed
await services.config.updateConfigPath(targetConfigPath);
} else {
onMessage({
role: "system",
content: `Switching to organization for ${config.name}...`,
@ -107,9 +110,6 @@ export function useConfigSelector({
// Update config path THEN reload services once
// This avoids the double reload issue
await services.config.updateConfigPath(targetConfigPath);
} else {
// Only config path is changing, no organization switch needed
await services.config.updateConfigPath(targetConfigPath);
}
// Reset chat history