fix: agent info not updating when switching routes
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user