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
+1 -1
View File
@@ -39,7 +39,7 @@ export const useAgents = () => {
};
const getAgent = (id: MaybeRef<string>) => {
return computed(() => state.list.value.find((agent) => agent.id === id) || null);
return computed(() => state.list.value.find((agent) => agent.id === toRef(id).value) || null);
}
const createAgent = async () => {