fix: agent info not updating when switching routes

This commit is contained in:
Zoe
2026-02-26 14:02:13 -06:00
parent ce13f66bc0
commit 3ff0bcce19
3 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ const route = useRoute();
const { agents, getAgent } = useAgents();
const { openDropdown, dropdownState, closeDropdown } = useDropdown();
const activeAgent = getAgent(route.params.id as string);
const agentId = computed(() => route.params.id as string);
const activeAgent = getAgent(agentId);
const { isHovered } = useSidenavContext();