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 e8f1fc3
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.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function ChatAgent() {
throw new Error("Trying to view a thread with an unsupported parent.");
};

const [isAgent, entity] = [agent !== null, getEntity()];
const entity = getEntity();

return (
<div className="h-full flex flex-col overflow-hidden relative">
Expand Down

0 comments on commit e8f1fc3

Please sign in to comment.