Skip to content

Commit

Permalink
fix: agent id briefly showing on breadcrumb in threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyjeong13 committed Dec 30, 2024
1 parent d681197 commit 2c71a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.agents._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
} from "~/components/ui/tooltip";

export async function clientLoader() {
mutate(AgentService.getAgents.key(), ThreadsService.getThreads.key());
await Promise.all([
preload(AgentService.getAgents.key(), AgentService.getAgents),
preload(ThreadsService.getThreads.key(), ThreadsService.getThreads),
Expand Down Expand Up @@ -72,6 +71,7 @@ export default function Agents() {
name: generateRandomName(),
} as Agent,
}).then((agent) => {
mutate(AgentService.getAgents.key());
navigate(
$path("/agents/:agent", {
agent: agent.id,
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.threads._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function ThreadFilters({
filters.agentId && {
key: "agentId",
label: "Agent",
value: agentMap[filters.agentId]?.name ?? filters.agentId,
value: agentMap[filters.agentId]?.name,
onRemove: () => updateFilters("agentId"),
},
filters.userId && {
Expand Down

0 comments on commit 2c71a51

Please sign in to comment.